Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
devTea240886yYeah redux is fucked up, I still need to copy boilerplate from past project when start a new one
Try context api, I heard it’s easier -
al-m26796y@JohnDoesNot here is repo, we can discord chat if you want. might be easier https://github.com/Al-Names/...
-
devTea240886y@al-m how about get the dish props and putting it on this.state, and then instead of sending an action to sort it, just sort it on the component, so the redux only stores the data from dishes
-
devTea240886y@al-m Using redux just to store the data instead of also doing complex operation on it
-
devTea240886y@al-m the reason your component didn't get updated is because it doesn't know the element changed, how about componentDidUpdate()?
-
devTea240886y@al-m it's easier to do it like on 2nd picture since there's only 1 state to watch on redux
-
devTea240886y@al-m I've created a pull request, can you try it for me as i don't have the environment to test it out, test it on your local before merging it
-
With redux you should avoid component state. Just approach them as the props they are.
-
al-m26796y@JohnDoesNot brain fritz right there.
I can’t tell if I don’t know enough or I’m just so done with dev life my brain is trying to block it all out -
devTea240886y@al-m extract the reduc state into normal react state, I can’t run the apps, what does the port webpack run on? I also need to config the python environment
Related Rants
Sighhhhhh.
SIGHHHHHH.
been looking for days now and can’t still figure out how to sort with redux.
Can someone just teach me this? I’m starting to feel “special”
rant
react
redux