-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readQueryFromStore
using returnPartialData
returns an empty object if some fields are empty
#359
Comments
4 tasks
stubailo
pushed a commit
that referenced
this issue
Jul 6, 2016
Return undefined for fields not in store. (fixes #359)
This was referenced Sep 3, 2022
This was referenced Sep 10, 2022
This was referenced Sep 12, 2022
This was referenced Sep 20, 2022
This was referenced Sep 26, 2022
This was referenced Oct 3, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What should
readQueryFromStore
return whenreturnPartialData
is true and some requested fields are missing? It currently returns an empty object. I'm not sure what the best approach is. Certainly, for my needs, returningnull
or evenundefined
for the missing fields is nicest, and I think makes sense sincereturnPartialData
is expected to get the full data at a later point in time from the server, anyway. Alternatively, perhapsreturnPartialData
just needs some more clarification.Here's some code that shows the issue I'm having. The last 2
readQueryFromStore
calls demonstrate the issue.The text was updated successfully, but these errors were encountered: