Anisha Pal Mohor
Anisha Pal Mohor

Reputation: 111

PersistGate of redux-persist throwing 'Uncaught DOMException' when passing a react component inside loading parameter

I m using PersistGate, and getting error: Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. as I pass a react component inside the loading prop but if I pass null , then working fine. Below is the sample code piece :

<PersistGate 
      loading={<Loading />}
      onBeforeLift={onBeforeLift}
      persistor={persistor}>
      <App />
    </PersistGate>

How to handle this loading props issue?

Upvotes: 1

Views: 91

Answers (0)

Related Questions