Preserve containers' states across Hot-Module-Replacements.
npm install --save unstated-hmr
import HMR from 'unstated-hmr'; // Just load the library before initializing the containers
HMR.isEnabled = IS_DEVELOPMENT;
- unstated-with-containers: Higher-Order Component for subscribing to containers.
- unstated-connect2: Connect containers to components, without sacrificing performance.
- unstated-compose: Compose multiple containers into one.
- unstated-compose-suspense: Add suspend/unsuspend support to
unstated-compose
. - unstated-compose-suspense-middleware: Add middlewares support to
unstated-compose-suspense
. - unstated-suspense: Suspend/unsuspend updates propagation from your containers.
- unstated-suspense-middleware: Add middlewares support to
unstated-suspense
.
MIT © Fabio Spampinato