rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.94k stars 866 forks source link

onBeforeLift - redirect to /?&r1 #1339

Closed evgencode closed 3 years ago

evgencode commented 3 years ago

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

  1. no redirect: <PersistGate loading={<i />} persistor={persistor} onBeforeLift={getUserBefore}>

  2. redirect: <PersistGate loading={null} persistor={persistor} onBeforeLift={getUserBefore}>

If I specify null in the loading, the parameter/?&r1 appears in the url.

Why it happens?