Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared files are downloaded multiple times #459

Closed
nguyenbatranvan opened this issue Jul 12, 2023 · 8 comments
Closed

Shared files are downloaded multiple times #459

nguyenbatranvan opened this issue Jul 12, 2023 · 8 comments

Comments

@nguyenbatranvan
Copy link

Versions

  • vite-plugin-federation: 1.2.3
  • vite: 4.3.9

Steps to reproduce

When I use remote and host, the project runs in production mode the files __federation_shared_react & __federation_shared_react-dom are loaded twice
image

What is Expected?

The files __federation_shared_react & __federation_shared_react-dom only be downloaded once

@wijionejs
Copy link

Hey, are you using zustand in your remote app?
Have you found a solution?

@nguyenbatranvan
Copy link
Author

Hey, are you using zustand in your remote app? Have you found a solution?

what is the problem with your zustand?

@wijionejs
Copy link

Hey, are you using zustand in your remote app? Have you found a solution?

what is the problem with your zustand?

@nguyenbatranvan I've created an issue. You can peruse it if you want.

@nguyenbatranvan
Copy link
Author

Hey, are you using zustand in your remote app? Have you found a solution?

what is the problem with your zustand?

@nguyenbatranvan I've created an issue. You can peruse it if you want.

I came up with a workaround with it

@AsuraKev
Copy link

is this issue fixed in v1.3.1 ?

@nguyenbatranvan
Copy link
Author

I recently went back to try to find out why, and I was able to complete this problem
My repo
image

@AsuraKev
Copy link

resolved as a work around or a proper fix?

@nguyenbatranvan
Copy link
Author

resolved as a work around or a proper fix?

not sure!! Maybe good and suitable for my current project

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

No branches or pull requests

3 participants