https://github.com/bitflower/stencil-redux-reducer-registry
https://github.com/bitflower/stencil-redux-reducer-registry
lazy-loading pwa reducer redux stenciljs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bitflower/stencil-redux-reducer-registry
- Owner: bitflower
- License: mit
- Created: 2018-07-17T19:38:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-17T19:45:22.000Z (almost 8 years ago)
- Last Synced: 2026-04-04T18:20:49.546Z (about 2 months ago)
- Topics: lazy-loading, pwa, reducer, redux, stenciljs
- Language: TypeScript
- Size: 1.08 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Lazy loading of Redux reducer with StencilJS
This [StencilJS](https://stenciljs.com/) app demonstrates how to load Redux reducer on the fly when new components are loaded through routes.
It uses the npm module `redux-reducer-registry` you can find here: [link](https://github.com/bitflower/redux-reducer-registry)
## GIF preview
Here you can a component loaded lazy including the instantiation of a reducer:

## Run it!
```bash
git clone https://github.com/bitflower/stencil-redux-reducer-registry.git stencil-redux-reducer-registry
cd https://github.com/bitflower/stencil-redux-reducer-registry
git remote rm origin
```
and run:
```bash
npm install
npm start
```