(createState)
| 48 | } |
| 49 | |
| 50 | export const create = (createState) => { |
| 51 | const api = createStore(createState) |
| 52 | |
| 53 | const useBoundStore = (selector) => useStore(api, selector) |
| 54 | |
| 55 | Object.assign(useBoundStore, api); |
| 56 | |
| 57 | return useBoundStore |
| 58 | } |
| 59 |
no test coverage detected