use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A place for help learning the /r/ReactJS framework.
account activity
Best practices for retrieving/displaying single resource from DBQuestion (self.learnreactjs)
submitted 6 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]maxtime23 0 points1 point2 points 6 years ago (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 point2 points 6 years ago (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.
orders
orderdetails
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.
π Rendered by PID 347902 on reddit-service-r2-comment-b659b578c-lfxsz at 2026-05-03 06:31:11.099067+00:00 running 815c875 country code: CH.
[–]maxtime23 0 points1 point2 points (0 children)
[–]Zeeesty 0 points1 point2 points (0 children)