(listener)
| 86 | initialState |
| 87 | |
| 88 | const subscribe: StoreApi<TState>['subscribe'] = (listener) => { |
| 89 | listeners.add(listener) |
| 90 | // Unsubscribe |
| 91 | return () => listeners.delete(listener) |
| 92 | } |
| 93 | |
| 94 | const api = { setState, getState, getInitialState, subscribe } |
| 95 | const initialState = (state = createState(setState, getState, api)) |
no outgoing calls
no test coverage detected
searching dependent graphs…