(state: CurrentCollection | undefined, data: any)
| 57 | } |
| 58 | |
| 59 | function patchData(state: CurrentCollection | undefined, data: any) { |
| 60 | if (!state) return state; |
| 61 | return { |
| 62 | ...state, |
| 63 | data: { |
| 64 | ...state.data, |
| 65 | ...data, |
| 66 | }, |
| 67 | isChanged: true, |
| 68 | }; |
| 69 | } |
| 70 | |
| 71 | type CurrentCollectionAction = |
| 72 | | SetAction |
no outgoing calls
no test coverage detected