Giter VIP home page Giter VIP logo

Comments (1)

xogeny avatar xogeny commented on September 2, 2024

OK, I looked into this and redux is very much coming from a Javascript approach and it seems overly complicated in its design. I've come up with something that for sure uses the flux approach to things. I think there are idiomatic options in TypeScript that I prefer over what is there in Javascript. In particular, I want the ability to preserve type checking.

Anyway, I've implemented something where the use of setState never appears at the level. Instead, components are given a special observer instance that they can use to link their own internal state to the global state and that link takes care of making the setState calls for them.

I'll probably refine it more later as I get a feel for React and flux. But I'm pretty happy with what I have.

All this and a bunch more were committed in 91e0846.

from search.

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.