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
It is currently only possible to edit the query data (in this case, an array of items) if it already has data. If my endpoint returns an empty array, or worse - nothing, I would like the ability to add an item to the array for testing.
Given that this is not already possible and seems explicitly disabled I worry there may be a technical reason (though possible programmatically with setQueryData), but would like to open the discussion.
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.
-
It is currently only possible to edit the query data (in this case, an array of items) if it already has data. If my endpoint returns an empty array, or worse - nothing, I would like the ability to add an item to the array for testing.
Given that this is not already possible and seems explicitly disabled I worry there may be a technical reason (though possible programmatically with
setQueryData), but would like to open the discussion.Beta Was this translation helpful? Give feedback.
All reactions