(selector: (state: AppStore) => T)
| 354 | export const appStoreContext = createContext(createAppStore()); |
| 355 | |
| 356 | export function useAppStore<T>(selector: (state: AppStore) => T) { |
| 357 | const context = useContext(appStoreContext); |
| 358 | |
| 359 | return useStore(context, selector); |
| 360 | } |
| 361 | |
| 362 | export function useAppStoreApi() { |
| 363 | return useContext(appStoreContext); |
no outgoing calls
no test coverage detected