invalidateQueries
Why is the incorrect way of invalidating working and the what I believe is the correct way not?
Also tried a staleTime: 0
4 Replies
adverse-sapphire•2y ago
weird. which version?
dependent-tanOP•2y ago
Version 5.14...
adverse-sapphire•2y ago
okay your key is this:
so this can't work
queryKey: ['/set']
because arrays have an order
the bare sting likely works by accident becaus it will just target all queriesdependent-tanOP•2y ago
Thanks my bad...
Got it working 🙂