Question around what dependencies need to be shared #514
Unanswered
Mikejonesab12
asked this question in
Q&A
Replies: 1 comment
-
My issue sounds similar to this: #478 I feel like there may be a bug around this now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ran into an issue using
@tanstack/react-query
and was able to duplicate in the React Vite example.I wrapped the exposed
Button
component in the remote with aQueryClientProvider
component and used auseQuery
hook call.The app dies with an error about not finding
useSyncExternalStore
. I assume React Query is using this hook internally.When I add
@tanstack/react-query
toshared
in both the remote and host, it works.I guess I thought I would not need to mark
@tanstack/query
as shared since only the remote is using it.I can see that there may be some interaction with
react
being a peer dependency of@tanstack/react-query
and since it is shared, libraries that depend onreact
as a peer, need to also be shared?Beta Was this translation helpful? Give feedback.
All reactions