My previous issue was completely removed for some strange reason (not even closed) so I am opening a new one. Right now if you want to use the global mutate function you have to provide a complete match with the key. It's very weird and even react-query supports partial matching. Please add it as its very crucial. I cant replicate every key in every component.
I have a similar situation. I'm using multiple SWRInfinites for page handling and in various configurations which hold different datasets. When certain data is updated, some of these should revalidate their data.
It would be nice to revalidate/invalidate partial keys like mutate('/toplevel/nested/*').
Is this in the plans?
I have to unfortunately drop this library and replace it with react-query within two weeks because this feature is not yet available :/.
Most helpful comment
I have a similar situation. I'm using multiple SWRInfinites for page handling and in various configurations which hold different datasets. When certain data is updated, some of these should revalidate their data.
It would be nice to revalidate/invalidate partial keys like
mutate('/toplevel/nested/*').