Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabiospampinato/unstated-hmr
Preserve containers' states across Hot-Module-Replacements.
https://github.com/fabiospampinato/unstated-hmr
hmr hot-module-replacement react unstated
Last synced: about 1 month ago
JSON representation
Preserve containers' states across Hot-Module-Replacements.
- Host: GitHub
- URL: https://github.com/fabiospampinato/unstated-hmr
- Owner: fabiospampinato
- License: mit
- Archived: true
- Created: 2018-10-01T15:05:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-06T20:06:05.000Z (almost 6 years ago)
- Last Synced: 2024-07-29T15:15:37.903Z (about 2 months ago)
- Topics: hmr, hot-module-replacement, react, unstated
- Language: TypeScript
- Homepage:
- Size: 32.2 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unstated HMR
Preserve containers' states across Hot-Module-Replacements.
## Install
```sh
npm install --save unstated-hmr
```## Usage
```ts
import HMR from 'unstated-hmr'; // Just load the library before initializing the containersHMR.isEnabled = IS_DEVELOPMENT;
```## Related
- **[unstated-with-containers](https://github.com/fabiospampinato/unstated-with-containers)**: Higher-Order Component for subscribing to containers.
- **[unstated-connect2](https://github.com/fabiospampinato/unstated-connect2)**: Connect containers to components, without sacrificing performance.
- **[unstated-compose](https://github.com/fabiospampinato/unstated-compose)**: Compose multiple containers into one.
- **[unstated-compose-suspense](https://github.com/fabiospampinato/unstated-compose-suspense)**: Add suspend/unsuspend support to `unstated-compose`.
- **[unstated-compose-suspense-middleware](https://github.com/fabiospampinato/unstated-compose-suspense-middleware)**: Add middlewares support to `unstated-compose-suspense`.
- **[unstated-suspense](https://github.com/fabiospampinato/unstated-suspense)**: Suspend/unsuspend updates propagation from your containers.
- **[unstated-suspense-middleware](https://github.com/fabiospampinato/unstated-suspense-middleware)**: Add middlewares support to `unstated-suspense`.## License
MIT © Fabio Spampinato