Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: avoid duplicate react with redux in dev mode#800

Merged
gioboa merged 1 commit into
mainfrom
fix/792
Jun 10, 2026
Merged

fix: avoid duplicate react with redux in dev mode#800
gioboa merged 1 commit into
mainfrom
fix/792

Conversation

@gioboa

@gioboa gioboa commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Close #792

In dev only, if react-redux is present, we skip Vite pre-bundling for shared react.
This keeps React resolved through Module Federation sharing.

Result:
host, remote, and react-redux all use the same React instance.

@pkg-pr-new

pkg-pr-new Bot commented Jun 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@module-federation/vite@800

commit: d6cfab6

@gioboa gioboa left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests With Different Frameworks

Screenshot 2026-06-10 at 16 10 27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Remote component using RTK crashes with resolveDispatcher() is null

1 participant