(cb: ICallback, paths: any)
| 54 | }; |
| 55 | |
| 56 | const getIds = (cb: ICallback, paths: any) => { |
| 57 | const items = [ |
| 58 | ...flatten(cb.getInputs(paths)), |
| 59 | ...flatten(cb.getState(paths)) |
| 60 | ]; |
| 61 | |
| 62 | const uniqueIds = new Map(items.map(item => [stringifyId(item.id), item])); |
| 63 | const uniqueItems = Array.from(uniqueIds.values()); |
| 64 | return uniqueItems; |
| 65 | }; |
| 66 | |
| 67 | const observer: IStoreObserverDefinition<IStoreState> = { |
| 68 | observer: async ({dispatch, getState}) => { |
no test coverage detected
searching dependent graphs…