History: There is no way to prevent navigation.

Created on 16 Mar 2017  路  1Comment  路  Source: ReactTraining/history

Without listenBefore/transitionHooks and only one active "block" it is unreal to normally prevent navigation.
Design of new history is much simpler and clearer, but why not add more than one prompt at one time or ability to overload transitionManager via options?

It is normal, if you have stackable navigation blockers. I am not asking for old async things.
And it is normal to be not just a speechless listener of history even, but have some tools to perform some actions.

>All comments

You can block navigation using history.block. If you need more than one potential blocker, you can implement it yourself.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

richardgorman picture richardgorman  路  5Comments

sidoruk-sv picture sidoruk-sv  路  3Comments

mereskin-zz picture mereskin-zz  路  4Comments

pshrmn picture pshrmn  路  7Comments

wssgcg1213 picture wssgcg1213  路  6Comments