Hey guys,
My use case goes like this, I'm using react-query to build a package for managing flags (could be feature flags or flags for ab-testing).
This package is used as a shared dependency in micro-frontend environment (meaning multiple applications are basically using the same query cache).
This works really nice and everything is in sync.
Sometimes different app will look at the same flag but with different options that needs to be sent to the server. If I include this options as part of the queryKey, it will basically treat it as 2 separate cache instances (which is good for most cases but not for me for this one).
How would you advise doing this?
Removing the options from the queryKey and manually sending them to the queryFn?
And also, sometimes I need to refetch with different options (but still using the same cache). I see that refetch doesn't support this at the moment.
Thanks in advance