-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Duplicate network request for chunk from multiple entryfiles #2644
Comments
Do you have a repo we can debug? Are you using the runtime directly or using the federation plugin. Need to know use and consumption |
Hello @satheesh66. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
We are using hybrid mode some services are loaded from build time and some services are loaded from runtime. this is our prod setup I can't recreate this issue in a small setup, will try to add minimal reproduction code. |
The total number of network requests is 220 while loading the home page with module federation V1 but in V2 the requests number goes to 370, we don't know the root cause and I can't reproduce this issue in the small snippet everything works in the small setup but not in our product code. let me know how can I debug and recreate this issue. I have tried to recreate the issue with this code https://github.com/satheesh66/module-federation-v2 but I can't. |
As the issue was labelled with 由于该 issue 被标记为 "需要重现",但在 5 天内没有回应,因此该 issue 将被关闭。如果你有任何进一步的问题,请随时发表评论并重新打开该 issue。背景请参考 为什么需要最小重现。 |
Hello, |
Hello @ScriptedAlchemy, here is a repro project following my previous post: https://github.com/WeetA34/mf-double-calls-repro.
It's probably not the exact same issue as @satheesh66 but it doesn't seem to be an expected behavior. Thank you |
Thanks for the fix #2569 @zhoushaw @2heal1.
But the issue is not fully resolved still I am facing a duplicate request issue even after updating
@module-federation/[email protected]
In the above screenshots, you can see the same chunk requested by multiple times (check the initiator chain in those requests)
the first request from the initial host's
entry.js
file and further requests from other servicesentry.js
they have also used that chunk.let me know if miss any thing! Thanks
@ScriptedAlchemy @2heal1 @zhoushaw
Originally posted by @satheesh66 in #2569 (comment)
The text was updated successfully, but these errors were encountered: