-
-
Notifications
You must be signed in to change notification settings - Fork 383
Open
Description
Describe the bug
I have a host app and a remote app. They both use the same react and zustand version.
The host app exposes zustand store. The remote app exposes a react component.
When I start 2 apps, zustand store is created 2 times, leading 2 instances are created. One for host app, and one for remote app.
When update store from zustand, the value of store in remote doesn't change.
Reproduction
https://github.com/hqlinh/microfrontend
Used Package Manager
yarn
System Info
System:
OS: macOS 14.6.1
CPU: (8) arm64 Apple M2
Memory: 106.80 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.19.0
Yarn: 1.22.22
npm: 10.9.3
pnpm: 10.17.0
Browsers:
Chrome: 143.0.7499.170
Firefox: 139.0.4
Safari: 17.6Validations
- Read the docs.
- Read the common issues list.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Module federation issue and not a framework-specific issue.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels