Invalidating Queries
Hey! Might be being thick here but I'm implementing in an optimistic update layer and fully expected this to work:
However that won't work. You can make it work by either removing the input - so
Is there a way I can just invalidate the query based on input or am I thinking about this wrong?
The query key is correct as I can use
However that won't work. You can make it work by either removing the input - so
getWeek.queryKey() or by passing the key as the only arg;Is there a way I can just invalidate the query based on input or am I thinking about this wrong?
The query key is correct as I can use
setQueryData on it fine;