T
TanStack16mo ago
sensitive-blue

Sharing a query client between MFE's using vite

Hello I have multiple MFE's and I want the to use the same query client provider in order to perform query deduplication. How can I achieve that, can you please help me out ?
3 Replies
sensitive-blue
sensitive-blueOP16mo ago
any ideas?
generous-apricot
generous-apricot16mo ago
Create a client in the host and pass it as a prop ?
sensitive-blue
sensitive-blueOP16mo ago
Hello TkDodo, is there a better more dynamic alternative ? that could be a solution I guess I was expecting that If I wrap the core application that hosts al lthe MFE's with the query client provider all request would fall there and get dedouplicated You can wrap the host application with the Query Client provider consider this post solved. Thanks for your help ❤️

Did you find this page helpful?