Why can't I update `setQueryData` mutably?
Ik the docs say you can't but why not? if i return the updated object after mutating then it should work no?
1 Reply
other-emeraldOP•3y ago
im trying to avoid cloning these arrays cause they can get very large
Also changing the return statement to
return ctx && { ...ctx }; doesn't work either? why wouldn't it work, isn't it effectively cloning it?