I'm going migrate to Redux.  My application consists of a lot of parts (pages, components) so I want to create many reducers. Redux examples show that I should use combineReducers() to generate one reducer.  Also as I understand Redux applicati...
I've read this answer, reducing boilerplate, looked at few GitHub examples and even tried redux a little bit (todo apps).   As I understand, official redux doc motivations provide pros comparing to traditional MVC architectures. BUT it...
I'm new to React, and I'd like to ask a strategy question about how best to accomplish a task where data must be communicated between sibling components.  First, I'll describe the task:  Say I have multiple <select> components tha...
According to docs state of react app has to be something serializable. What about classes then?  Let's say I have a ToDo app. Each of Todo items has properties like name, date etc. so far so good. Now I want to have methods on objects which are n...
I've been struggling for hours to finding a solution to this problem...  I am developing a game with an online scoreboard. The player can log in and log out at any time. After finishing a game, the player will see the scoreboard, and see their ow...
I'm using alt as my flux implementation for a project and am having trouble wrapping my head around the best way to handle loading stores for two related entities. I'm using sources feature along with registerAsync for to handle my async/api...
I'm trying to work out the cleanest way to load the initial state of my Redux stores when it comes from API calls.  I understand that the typical way of providing the initial state is to generate it server-side on page load, and provide it to Red...
This is more of an architectural question regarding react than a specific issue, but what is considered best practice for managing state/props with a layout component and a several child components which are rendered based on the url?  Note: I'm...
I know this question has been asked more times in different flavours, but I didn’t find the "right" answer yet (maybe there just isn't one), so I’m looking for the "most Flux" one.  Simple example:   two components - LoginForm...
In Flux, what is the point of using actions, instead of just letting the component publish directly to the dispatcher? What is it that I can't do without actions?...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.