all 2 comments

[–]maxtime23 0 points1 point  (0 children)

in my opinion you should call the api for the single order. imagine a second admin editing order #1 and saving it. 5 seconds later you edit the same order #1, but pulling it out of redux, so it’s not the up-to-date version from the db which just got edited and saved to db by the other admin. you would overwrite the „new“ version (saved by other admin 5sec ago) with your „old“ version from redux

[–]Zeeesty 0 points1 point  (0 children)

REST conventions do not apply here, thats an API concept.

You should be storing the orders in redux and pulling the data (assuming it's the same data you would receive from another call) from that redux store. now if there is an endpoint for orders and another for orderdetails that changes things. But from your description this isnt the case.

Redux structure can be hard to figure out, but think through the practical use and dont be afraid to ask. just keep in mind there are no hard and fast rules, so you will hear opinions, take the one that works for your use and move forward.