hookstate
hookstate copied to clipboard
The simple but very powerful and incredibly fast state management for React that is based on hooks
Complete docs sections: 1. how to manage dynamic stores 1. how to migrate from Redux / Mobx 1. how to use with React.memo 1. how to combine with SSR
The documentation will be updated to cover migration guide and hookstate 4 features.
Use Case: I want to be able to have a component which can take either a boolean or a State, advantage being that I can defer/delegate listening to a value...
The example code in the documentation for nested state and scoped state are identical - nested state: https://hookstate.js.org/docs/nested-state - scoped state: https://hookstate.js.org/docs/scoped-state/ Is this a mistake or the usage for...
When storing a state that's `undefined`, the Persistence plugin will store this `undefined` as the string `"undefined"` which fails on future loads. Something like this can recreate the issue: ```...
`employeeState.employees.map((item, index) => ( ` in TableRow component: `const dataRowState = useState(dataRow);` calling `dataRowState.setState(none)` sets dataRowState.promised to true indefinitely. employeeState is a global Broadcasted state
I am using React-Select (https://react-select.com/home), where the way of updating the state is to give all values at once (instead of giving just the newly added element and use state.merge())...