-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Trigger page register when module is executed #5115
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
Trigger page register when module is executed #5115
Conversation
Solves inconsistent loading issues when one bundle is loaded faster than the other
|
@timneutkens When are you planning to merge this? Is it imminent? Just wondering because I really need this fix and would prefer not to use my fork. |
|
Basically today, was just waiting for Someone to review which has been done now. |
| `__NEXT_REGISTER_PAGE('${routeName}', function() {\n`, | ||
| moduleSourcePostModule, | ||
| '\nreturn { page: module.exports.default }', | ||
| '});' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to remove the linebreaks here or make them consistent.
Solves inconsistent loading issues when one bundle is loaded faster than the other
Fixes vercel/next-plugins#244
Fixes #4997
Fixes #4620