Is there a global hook or single router hook in react-router4? or some good custom impementation? this feature is really quite useful.
I also use Vue, it's offical implementation is like below:
javascript
router.beforeEach((to, from, next) => {...})
I can do some block things, like api request etc.