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
The recommendations and watchlist arrays are filled with id's that reference items in other collections when the profile object is initially returned:
When a user visits the watchlist page, these reference id's are then populated with data:
I've currently stored the array separately in the cache using query key ['watchlist'], with a separate query key for ['profile']. Ideally should I be trying to keep the initial strucutre of the profile object, updating the nested arrays when a user visits a relevant page, all under the ['profile'] query key?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
My backend returns a profile object like so:
The recommendations and watchlist arrays are filled with id's that reference items in other collections when the profile object is initially returned:

When a user visits the watchlist page, these reference id's are then populated with data:

I've currently stored the array separately in the cache using query key
['watchlist']
, with a separate query key for['profile']
. Ideally should I be trying to keep the initial strucutre of the profile object, updating the nested arrays when a user visits a relevant page, all under the['profile']
query key?Beta Was this translation helpful? Give feedback.
All reactions