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

Defer routeChangeComplete until head was updated #4919

Closed
wants to merge 2 commits into from

Conversation

HaNdTriX
Copy link
Contributor

@HaNdTriX HaNdTriX commented Aug 8, 2018

What problem are we trying to solve?

Currently the routeChangeComplete event fires before the head was updated.

Solution

Defer the routeChangeComplete event until the head update is done.

Closes: #4044, #4889
Related: #574, #4838

@timneutkens
Copy link
Member

I wonder if the tests still pass with the suspense support update of next/head

@HaNdTriX HaNdTriX force-pushed the route-change-complete branch 2 times, most recently from ab89a5f to 529d386 Compare September 3, 2018 07:49
@HaNdTriX
Copy link
Contributor Author

HaNdTriX commented Sep 3, 2018

I removed the fix, but the tests are not passing.

@timneutkens
Copy link
Member

What i meant to say is that the head update doesn’t get triggered until componentDidMount

@timneutkens timneutkens closed this Sep 3, 2018
@timneutkens timneutkens reopened this Sep 3, 2018
@HaNdTriX
Copy link
Contributor Author

I am closing this, since it is out of date. We should tackle this later.

@HaNdTriX HaNdTriX closed this Oct 22, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

document.title not updated in Router.onRouteChangeComplete
2 participants