Coder Social home page Coder Social logo

Refactor to use Redux about endeavors HOT 6 OPEN

movingobjects avatar movingobjects commented on July 17, 2024
Refactor to use Redux

from endeavors.

Comments (6)

movingobjects avatar movingobjects commented on July 17, 2024

Hmm, not sure exactly how this works/connects with Firebase 🤔

from endeavors.

alexburner avatar alexburner commented on July 17, 2024

Oh man I went climbing up the Redux&Firebase tree once

I still haven't come back

I think the two might be mutually exclusive, save for wrappers like https://github.com/prescottprue/react-redux-firebase

from endeavors.

movingobjects avatar movingobjects commented on July 17, 2024

I might try out Redux on something even simpler first—I watched some of these videos and it seemed to make sense, but I haven't actually tried using it yet.

from endeavors.

alexburner avatar alexburner commented on July 17, 2024

Oo by the creator himself, very cool! I'm a fan of redux, we use it at work and are pretty happy with it. The one sticky bit: asynchronous data. There isn't one accepted solution... so many options:

  • redux thunk (simplest) ← tried this at work, is ok, but gets messy
  • redux saga (popular, generator based) ← i don't know generators
  • redux observable (popular, rxjs based) ← i don't know rxjs
  • redux loop (not as popular, elm based) ← we use this at work now ⭐️

This article has a decent overview of the above & more

But I wouldn't worry about it until you need to, definite fatigue land 😓

from endeavors.

movingobjects avatar movingobjects commented on July 17, 2024

Well, at least glad to see my confusion is one that others have had. Lots of option indeed, and sad that none of them feel like the obvious Correct Choice.

I don't yet feel super comfortable with the asynchronous stuff in general. Probably best to gain my bearings a bit more before putting this all on the plate.

But, still interested in Redux. Those videos are great—Dan Abramov is a really great communicator.

from endeavors.

alexburner avatar alexburner commented on July 17, 2024

Yeah it's a bummer! The react/redux combo seems so accepted, feels odd there's not a consensus on the async handling. Especially because the web has so many async events/actions...

But yes, you are absolutely not alone.

I'll have to check those videos out (sidenote: I also wanna catch up on Coding Train videos, he's getting into machine learning now??)

from endeavors.

Related Issues (12)

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.