hookstate
hookstate copied to clipboard
The simple but very powerful and incredibly fast state management for React that is based on hooks
``` let a: State & { downcast(): State; }; let b: State = a!.downcast(); let c: State = (a!); function downcast(a: State): State { return {} as State } ```
i want to create global state with persist (@hookstate/localstored) in React Native could someone give me reference?? i just create global state for authentication flow, but everytime I close and...
// TODO document this sample // // creating reusable combo // let e = () => extend( // clonable(v => v), // clonable(v => v), // // clonable(v => v),...
Broadcasted/Devtools can broadcast only certain types. If serializable extension is added to a state, the broadcased/devtools extension could use this (like localstored extension) to pack/unpack broadcasted data. This would allow...
Hi @avkonst and contributors, Really hate when people start their silly questions with "first of all thank you for the great lib", but... it's true, so First of all thank...
Add ability to attach a logger to dump to the console (or else where configured) state updates.
I want to perform some business logic (nothing ui related) when a state changes. Right now only way to subscribe is to do it inside a component using the useHookstate...
Hi, have been using hookstate for a while now and it seems pretty cool. We are running into a problem which I think could most easily be solved by allowing...
I'm basically initializing the devtools in index.tsx and afterwards create a hook with global state. This is working perfectly, however it's not showing up in the [Redux DevTools extension](https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd) for...