Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
useList
hook and remove old list selector
BREAKING CHANGE: `List.selector` is no longer available. Use new hook to interact with state and actions. ```js // define list const todos = buildList("TODOS", { read: () => {} }) // New // Access all available actions and selector const { selector, create, read, readOne, update, delete, clear } = useList(todos, store.dispatch) // New // All previous selector are available throught the new hook const { items, isLoaded } = selector(store.getState()) ```
- Loading branch information