Skip to content

Conversation

@timneutkens
Copy link
Member

@timneutkens timneutkens commented Sep 6, 2018

Solves inconsistent loading issues when one bundle is loaded faster than the other

Fixes vercel/next-plugins#244
Fixes #4997
Fixes #4620

Solves inconsistent loading issues when one bundle is loaded faster than the other
@timneutkens
Copy link
Member Author

@Zn4rK I finally found the issue you ran into and wrote a test for, check this commit: a3f83ae

It was a timing issue where the page cache got deleted right before re-rendering the page. Causing the props to not be available. Removing this logic as it is no longer needed there was enough 👍

@vjpr
Copy link

vjpr commented Sep 11, 2018

@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.

@timneutkens
Copy link
Member Author

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 }',
'});'
Copy link
Contributor

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.

@timneutkens timneutkens merged commit 3582496 into vercel:canary Sep 11, 2018
@timneutkens timneutkens deleted the add/reliable-page-loading branch September 11, 2018 18:03
@lock lock bot locked as resolved and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

3 participants