Skip to content

Conversation

@wallzero
Copy link
Contributor

Since <UIRouter> was switched to a function component, uiRouter.current = needs to be wrapped in a useEffect. Otherwise multiple renders can trigger uiRouter.current.start().

The return must also check if uiRouter.current has been set and useState is used to force a rerender.

… for React.StrictMode and React.ConcurrentMode
@wallzero
Copy link
Contributor Author

Resolves #606

@christopherthielen christopherthielen merged commit 834c755 into ui-router:master Feb 23, 2020
@christopherthielen
Copy link
Member

thanks @wallzero 👍

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

Successfully merging this pull request may close these issues.

3 participants