Skip to content

Multiple load of same library (react, preact) #2880

Closed Answered by ScriptedAlchemy
nihil-pro asked this question in Q&A
Discussion options

You must be logged in to vote

Share scope is tearing because you are using dynamic remotes. It's a common problem in v1. Module-federation/runtime package provides the safe mechanics to use dynamic remotes. In v1 it will always tear if remotes are not loaded upfront before anything else takes place.

Someone is already using the share when new stuff is added to share scope. At that point it's too late for host to now use something else and remote will load it's own share as it wants since it's not too late for it.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ScriptedAlchemy
Comment options

@ScriptedAlchemy
Comment options

Answer selected by nihil-pro
@nihil-pro
Comment options

@ScriptedAlchemy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants