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
genetic-orange•2y ago
weird. which version?
other-emeraldOP•2y ago
Version 5.14...
genetic-orange•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 queriesother-emeraldOP•2y ago
Thanks my bad...
Got it working 🙂