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
-
@Sophia Some: (Most of the errors comes from adding third party packages)
1. some actions were not firing but i couldn't tell. Use redux-logger to see actions as they are created.
2. Immutable data. use seamless-immutable and immutableJs.
3. persisting data. I use redux-persist but it breaks code immutability so you have to handle immutability myself.
4. react-router-redux. replace browserRouter with connected router. Connectedrouter must be in the same component that is connected to redux (i used on the parent which broke the code) -
@rectango @rectango @rectango Strange I never faced any of the things you say.
1. If actions are not firing are you sure at least their parent component has connect() called on it? and that connect() page has the actions you aree calling?
2. No comment
3. Isn't that package either use local storage for ReactJS or AsyncStorage for RN
4. I use router on the root page only, then it handles the replacement, and if it is to be a root page with just a specific part of it to be replaced when navigating, then that div to have its content replaced is the one that to include the <Provider>
I've been working on a ReactJS project for a year and not a single issue of those has happened to me to be honest. -
@gitpush Not sure why they happened to me like that. Probably because of my project structure
3. redux-persist also works for web, if you dont' want to make fresh request on page refresh.
4. Had this problem yesterday, that was the problem it boiled down to. Again i think it's because of the way i structured my project -
leanrob36647y@rectango Are you using the Redux DevTools?
They can be amazing for making sure that actions are firing correctly at the same time. And even better for making sure that the state is modified correctly with action firing.
Great for making sure your async actions are working correctly.
https://github.com/zalmoxisus/... -
@faheel
I think the focus should be on understanding JS. React or Vue, you are good either way. In the end, it's just JavaScript. Once you get good at one, you're empowered to use the other.
React has a ton of resources though. -
kostra43yReact is a useless peace of digital shit turning dev's into zombies touched with Stockholm syndrom. Version 18 and their community is still struggling to do basic async stuff. UseCallback... Oh my. Oh right, it must be front webdev reserved to genius only. Yes i am a hater because i Hate this pile of crap. 💩😆
true story
joke/meme
react redux