Plugins system overview
Please, submit pull request if you would like yours plugin included in the list.
Standard extensions
Plugin | Description | Example | Package | Version |
---|---|---|---|---|
Initial | Enables access to an initial value of a State and allows to check if the current value of the state is modified (compares with the initial value). Helps with tracking of modified form field(s). | Demo | @hookstate/initial | |
Touched | Helps with tracking of touched form field(s). | Demo | @hookstate/touched | |
Validation | Enables validation and error / warning messages for a state. Usefull for validation of form fields and form states. | Demo | @hookstate/validation | |
Persistence | Enables persistence of managed states to browser's local storage. | Demo | @hookstate/persistence | |
Broadcasted | Enables synchronization of a state across browser tabs. | Demo | @hookstate/broadcasted |
Development tools
Plugin | Description | Example | Package | Version |
---|---|---|---|---|
DevTools | Development tools for Hookstate. Install Chrome browser's extension and activate the plugin in your app. Learn more about using the development tools. | Demo | @hookstate/devtools | |
Logger | Simpler alternative to development tools. Logs state updates and current value of a state to the development console. | @hookstate/logger |
Special extensions
Plugin | Description | Example | Package | Version |
---|---|---|---|---|
Labelled | Allows to assign string metadata to a state. | Demo | @hookstate/labelled | |
Untracked | It allows to get and set a state without triggering rerendering. It also allows to trigger rerendering even when a state has not been updated. You should understand what you are doing if you decide to use this plugin. | Demo | @hookstate/untracked | |
Downgraded | Turns off optimizations for a StateLink by stopping tracking of it's value usage and assuming the entire state is used if StateLink's value is accessed at least once. | Docs | @hookstate/core |