React-router: Prompt doesn't prevent refresh with `when` set to true

Created on 22 Dec 2017  路  5Comments  路  Source: ReactTraining/react-router

Version

4.2.2

Test Case

N/A

Expected Behavior

That hooking up a Prompt would prevent navigation or refreshes

Actual Behavior

It only prevents the navigation

I may have misunderstood how to use this? I'm not seeing a way that covers refreshing as well.

All 5 comments

Prompt doesn't handle refreshing.

@timdorr it looks like there's a PR from August that added the functionality. Is there a request issue? Could I get that PR up to snuff? PR in question https://github.com/ReactTraining/react-router/pull/4372

Sure, you can make another one. Nothing about a PR makes it "reserved". Whichever code is best.

I don't want to invalidate someone else's work. I maintain other OSS and I know contributors can take it harshly when someone else just jumps on something they've been working on. To be honest though the experience I'm having just trying to get information from the maintainers here is making me not want to contribute as it's entirely too impersonal and feels like you aren't reading a word I write.

I'm reading this. What information are you looking for?

Was this page helpful?
0 / 5 - 0 ratings