阅读背景:

从反应路由器检索导航操作

来源:互联网 

In the application I'm building I chose react-router to handle the navigation flow, but I need to track the event of navigating back on the browser, so when you try to load the component in the new render I need to know if the user has landed here by pressing the back button. What would be the best way to track it? I'm pretty sure that is using the History API, but couldn't find any straight way to check that, and it feels like it should be pretty easy given how the library works.In the application I'm building I chose react-r




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: