dvdzkwsk / react-redux-starter-kit

Get started with React, Redux, and React-Router.
MIT License
10.28k stars 2.2k forks source link

How to save the parameters passed during the routing jump and to apply this parameter when refreshing the page. #1347

Open MirShi opened 6 years ago

MirShi commented 6 years ago

How to save the parameters passed during the routing jump and to apply this parameter when refreshing the page.

zaoansijia commented 6 years ago

you can save the parameters when you jump. just like this: router.push({ pathname: '/home/login', query: { ...params } }) then you can get the query by location