Giter VIP home page Giter VIP logo

Comments (4)

lmatteis avatar lmatteis commented on July 25, 2024

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.

goshacmd avatar goshacmd commented on July 25, 2024

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.

lmatteis avatar lmatteis commented on July 25, 2024

Wondering whether https://github.com/Widdershin/cycle-restart will work

from redux-cycles.

Widdershin avatar Widdershin commented on July 25, 2024

You could probably adapt cycle-restart for this usecase, it might just work™.

from redux-cycles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.