hookstate
hookstate copied to clipboard
The simple but very powerful and incredibly fast state management for React that is based on hooks
Hi, first of all thanks for this awesome library! I intend to use this with a pretty big nested array. Updating an existing element only triggers re-renders on this element...
This PR fixes the label heuristic to show the name of the module in which the state is defined.
Implements #208 This allows you to reset what "initial" is for things like editing forms when you save the form but might want to "edit" and "cancel" after saving. Since...
Potential implementation direction as a solution to #94 and maybe introduce a new Fluent API abstraction. Problem: - Need a way to support running validation in child components yet maintaining...
Using validation breaks the app in 4.0.0-rc21 I use: ```const login = useHookstate("", validation())``` And get the following trace: ``` × 1 of 3 errors on the page TypeError: _b.onInit...
Because `none` has an `any` type, using eslint with the rule `@typescript-eslint/no-unsafe-argument` will complain everywhere it is used. perhaps we update api with a `state.clear()` or just use a dummy...
I want to use localstored extension on a state and also subscribe to log changes in that state. How to add multiple extensions to a state ?
When a state is created, one could pass in an inital value. If that initial value is an object, it is later mutated when calling set or merge. Repro: https://codepen.io/vbuch/pen/BaxzeZY?editors=0011...
As funny as this is, what is error 110? ``` ERROR [Error: Error: HOOKSTATE-110 [path: /icons]. See https://hookstate.js.org/docs/exceptions#hookstate-110] ``` Error 110 is not listed: https://hookstate.js.org/docs/exceptions#hookstate-110
Some code demos are broken (showing a 404 inside the iframe). Examples: - https://hookstate.js.org/docs/getting-started - https://hookstate.js.org/docs/scoped-state (at the bottom of the page)