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
quickest-silverOP•14mo ago
any ideas?
adverse-sapphire•14mo ago
Create a client in the host and pass it as a prop ?
quickest-silverOP•14mo 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
❤️