I am using Redux-Form 7.3.0
and noticed that if go to other pages via changing the URL then if on the new page if I try to get values with formValueSelector
it doesn't work - will be undefined
. But if I go to the new page component via <Link to={'/blabla'}>
(react-router-dom) it will be ok and I get the values. why?
Asked
Active
Viewed 203 times
1
![](../../users/profiles/5623520.webp)
ILoveReactAndNode
- 233
- 4
- 13
-
redux store data is lost when the page is refreshed, you might want to make use of redux-persit to persist the data after reload – Shubham Khatri Apr 01 '18 at 18:24
-
@ShubhamKhatri so why does it work when I change the page via ? – ILoveReactAndNode Apr 01 '18 at 18:49
-
Changing via link is the normal flow which is considered a session and data is persisted in redux store via session – Shubham Khatri Apr 02 '18 at 05:33