TanStack React Query context on micro frontends
Hi! I'm currently working on a micro frontend project with each front end having its own instance of react query.
I'm having some issues on a project related to cache invalidation and this seems related to the nature of having multiple instances on the same window.
Reading the docs I understand that I should create a context to use and 'isolate' the instance on a project.
My question is:
Do I need to provide this context to EVERY query and mutation on the application or can I set a default context and forget about it?
Currenty sharing context between the micro frontends is not an option.
Thanks!

0 Replies