Add missing requestKey in example - #474
Conversation
When the example for `getStatus` is presented, it currently lacks the `requestKey` needed as part of the READ_RESOURCES_SUCCEEDED action. If that key is missing, that entry in the `requests` section will never changed status to SUCCEEDED, instead remaining in PENDING.
|
Thanks for taking the time to open this PR, @obedcorrales ! I believe this code example works as expected, but there are a few things here that should be updated, I think. I'll list those things at the end of this issue...but let's first look at why I think this example is working: Here's a CodeSandbox showing how it works, with some comments. tl;dr: the The arguments to getStatus(state, "books.requests.search.status");we're drilling into the state object, which looks something like: Seeing the state object like this may make the second argument, So what needs to be changed?
I can make a PR to fix these things, or if you wanted to take a stab at it that'd be cool, too. Just let me know. And thanks for opening this PR! |

When the example for
getStatusis presented, it currently lacks therequestKeyneeded as part of the READ_RESOURCES_SUCCEEDED action. If that key is missing, that entry in therequestssection will never changed status to SUCCEEDED, instead remaining in PENDING.