react-router icon indicating copy to clipboard operation
react-router copied to clipboard

Retrieve back navigation action

Open xavibonell opened this issue 10 years ago • 1 comments

Hi, I'm pretty new using react-router. But I'm using it and is comes very handy, thanks for your great work. In the application I'm building I need to track the event of navigation back from the browser, so when you try to load the component in the new render I need to know that 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.

Thank you very much! Anyone that could shed some light on the matter would be very welcomed! Thanks!

xavibonell avatar Jan 26 '16 18:01 xavibonell

Thanks for your question!

We want to make sure that the GitHub issue tracker remains the best place to track bug reports and feature requests that affect the development of React Router.

Questions like yours deserve a purpose-built Q&A forum. Could you post this question to Stack Overflow with the tag #react-router? https://stackoverflow.com/questions/ask?tags=react-router

We also have an active and helpful React Router community on Reactiflux, which is a great place to get fast help with React Router and with the rest of the React ecosystem. You can join at https://discord.gg/0ZcbPKXt5bYaNQ46.

taion avatar Jan 26 '16 18:01 taion