Giter VIP home page Giter VIP logo

Comments (4)

sarathas avatar sarathas commented on September 26, 2024

Why do we not make use of the new Context API instead? In other words: What is the exact use case that prevents us from using Context API in favor of redux?

from aeons-end-randomizer.

on3iro avatar on3iro commented on September 26, 2024

context is nice but pretty barebones. Its not an alternative for redux and isn't meant to be. E.g. we miss out on debugging capabilities as well as organizational structure. While we could mimic some of this with excessive use of context and Reacts useReducer it still wont be the same. Furthermore it enables the use of middlewares, which will be pretty helpful going forward.

Context is nice for many things and is even used by redux under the hood. When I started the App it made sense to use it initially. But in my opinion the app reached a point where I would like to manage Application state in a sane way and Redux enables us to do so.

from aeons-end-randomizer.

on3iro avatar on3iro commented on September 26, 2024

To add to the stuff above: I don't think adding redux is bad in any way. To me it feels like the app reached that point very naturally. And in hindsight I would say that it was a great move to start without it. This way I got a better feeling for when Redux is actually necessary and when we can live without it.

from aeons-end-randomizer.

on3iro avatar on3iro commented on September 26, 2024

Thoughts:

One MR, but integrate step by step:

  • Settings first
  • Nemesis
  • Mages
  • Supply
  • TurnOrder

from aeons-end-randomizer.

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.