(configOrStore: any, separateFn: any)
| 65 | } |
| 66 | /** useStoreMap wrapper for scopes */ |
| 67 | export function useStoreMap(configOrStore: any, separateFn: any) { |
| 68 | const scope = getScope(true) |
| 69 | if (separateFn) return useStoreMapBase([configOrStore, separateFn], scope) |
| 70 | return useStoreMapBase( |
| 71 | [ |
| 72 | { |
| 73 | store: configOrStore.store, |
| 74 | keys: configOrStore.keys, |
| 75 | fn: configOrStore.fn, |
| 76 | updateFilter: configOrStore.updateFilter, |
| 77 | }, |
| 78 | ], |
| 79 | scope, |
| 80 | ) |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | bind event to scope |
searching dependent graphs…