📄️ useStore
The useStore hook is designed to manage your component’s state using mutations and queries, let's explore the functionality by following the demo: File explorer
📄️ query
Method meant to retrieve specifics chunks of data from the store, let's explore this by following the demo: file-explorer
📄️ mutate
Method meant to modify the store's data, when the method is called the reducer will perform the corresponding mutation base on the type and all the store's subscribers will be notified, let's explore this by following the demo: file explorer
📄️ useMutations
The useMutations hook is designed to synchronize store changes with your component’s state. Additionally, you can manage local state with useMutations by setting an initialState and updating the state by returning a new value in the onChange function.
📄️ Example
Let's see the power of hermes-io, navigate the app below and notice the red flash animation indicating that there was a re-render only in the designated components.
📄️ Toolkit
CLI