Comments (4)
An interesting approach to hot-reloading would be to mock all side effects when calling Cycle.run. For instance during development you don't actually want to perform certain HTTP request - GET requests you may want them to go through, but not POSTs/PUTs.
There could be a way to pass a HOD (high order driver) that wraps HTTP driver and filters POSTs/PUTs request to not contact server; but just return mock data-- so the UI can be used without modifying server-state.
from redux-cycles.
In general, isn't hot reloading of any Redux side-effect approach a huge pita? Both sagas and cycles can have local, implicit state which can make hot-reloading useless in many cases even if cycles can be rebooted.
An alternative could be to keep track of action history and replay on hot reload, but this can be problematic as well... because changes in cycles can now change the past.
from redux-cycles.
Wondering whether https://github.com/Widdershin/cycle-restart will work
from redux-cycles.
You could probably adapt cycle-restart for this usecase, it might just work™.
from redux-cycles.
Related Issues (20)
- Package dependencies HOT 2
- Example failing tests HOT 1
- Travis for `example` dir HOT 8
- Slides
- State should be passed with the action HOT 19
- WebpackBin cannot resolve redux-cycles HOT 1
- Action from an http requetis fired twice HOT 3
- TypeScript Type Declarations HOT 3
- Request for a complex real world example HOT 2
- Typescript definitions are not added to the build HOT 6
- relative preset "es2015" not found with create-react-native-app HOT 1
- scheduleMicrotask is not a function HOT 4
- Is this project still active/maintained? HOT 2
- Simplest "PING/PONG" example in README.md has no 'rootReducer'
- What are the $s in variable names? HOT 1
- New test helpers? HOT 2
- Keep getting generic type parameter errors during compile
- Support multiple stream libraries HOT 6
- Linter HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-cycles.