Replies: 1 comment 3 replies
-
|
I think it's because zustand/traditional depends on use-sync-external-store. There might be two instances of it. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently building a micro frontend architecture using @originjs/vite-plugin-federation and Zustand for state management.
✅ This setup works correctly:
When the remote app is loaded in the host, everything works as expected.
❌ But this setup throws an error:
This results in the following runtime error when used inside the host app:
❓ Question
Is there a way to use createWithEqualityFn safely within a Module Federation setup using @originjs/vite-plugin-federation?
Why does createWithEqualityFn cause a useRef null error, while create works fine?
Any guidance or workaround would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions