You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to Redux and Flutter. I have a dilemma on how to implement list -> detail flow. Currently, I'm passing selected list element to the detail page and the populating data on view. But I have a feeling that this is violating Redux rules where view should be updated according to app state. My idea is to introduce detail state field to app state and once user select list item dispatch action containing the item and set item in detail state. But I'm not sure if this is the best way to implement that.
I tried to find an answer to my question on GitHub but all of the examples are simple one-page apps.
The text was updated successfully, but these errors were encountered:
Currently, I'm passing selected list element to the detail page and the populating data on view.
Hey, sorry -- was on a short vacay. Overall, the way I do it: Pass an id to the detail page. Then, the DetailPage can have a StoreConnector that connects to the Store and use a converter that finds the item in the Store given the Id. Something like this:
I'm new to Redux and Flutter. I have a dilemma on how to implement list -> detail flow. Currently, I'm passing selected list element to the detail page and the populating data on view. But I have a feeling that this is violating Redux rules where view should be updated according to app state. My idea is to introduce detail state field to app state and once user select list item dispatch action containing the item and set item in detail state. But I'm not sure if this is the best way to implement that.
I tried to find an answer to my question on GitHub but all of the examples are simple one-page apps.
The text was updated successfully, but these errors were encountered: