Skip to content

Fix blockTransitions not returning teardown function #4058

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

Merged
merged 3 commits into from
Oct 17, 2016
Merged

Fix blockTransitions not returning teardown function #4058

merged 3 commits into from
Oct 17, 2016

Conversation

maxdeviant
Copy link
Contributor

@maxdeviant maxdeviant commented Oct 17, 2016

The blockTransitions function on the router prop passed down from <StaticRouter /> was not returning a function to tear down the blocking prompt.

This PR changes the blockTransitions function to return its result, which should be the teardown function returned from calling history.block().

@timdorr timdorr changed the title [v4] Fix blockTransitions not returning teardown function Fix blockTransitions not returning teardown function Oct 17, 2016
@timdorr timdorr added this to the v4.0.0 milestone Oct 17, 2016
@timdorr
Copy link
Member

timdorr commented Oct 17, 2016

Thanks (bonus points for including a test!)

@timdorr timdorr merged commit 3282b7b into remix-run:v4 Oct 17, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 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.

2 participants