I have specified the function in onBeforeLift which makes a request to the server and a dispatch in the storage. After that, the application is rendered. For some reason, these parameters are set in the url: /?&r1
no redirect:
<PersistGate loading={<i />} persistor={persistor} onBeforeLift={getUserBefore}>
I have specified the function in onBeforeLift which makes a request to the server and a dispatch in the storage. After that, the application is rendered. For some reason, these parameters are set in the url:
/?&r1
no redirect:
<PersistGate loading={<i />} persistor={persistor} onBeforeLift={getUserBefore}>
redirect:
<PersistGate loading={null} persistor={persistor} onBeforeLift={getUserBefore}>
If I specify
null
in theloading
, the parameter/?&r1
appears in the url.Why it happens?