Warning: Can't perform a React state update on an unmounted component.
rootandleaves opened this issue · 2 comments
rootandleaves commented
Current Behavior
<RelayEnvironmentProvider environment={Environment}>
<NetworkProvider>
<NetworkConsumer>
{({ isConnected }) => (
isConnected ? (
<Provider store={Redux}>
<PersistGate loading={<Splash />} persistor={Persist}>
<ThemeProvider theme={theme}>
<StatusBar backgroundColor={theme.colors?.primary ?? '#202020'} />
<App {...__props}/>
</ThemeProvider>
</PersistGate>
</Provider>
) : <Network theme={theme}/>
)}
</NetworkConsumer>
</NetworkProvider>
</RelayEnvironmentProvider>
Error:
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
in NetworkConnectivity (created by NetworkProvider)
in NetworkProvider (at truck.pe__reactnative/index.js:223)
in Unknown (at truck.pe__reactnative/index.js:222)
in Unknown (at gestureHandlerRootHOC.js:13)
in GestureHandlerRootView (at GestureHandlerRootView.android.js:31)
in GestureHandlerRootView (at gestureHandlerRootHOC.js:12)
in gestureHandlerRootHOC() (at ComponentWrapper.js:37)
in WrappedComponent (at renderApplication.js:45)
in RCTView (at View.js:34)
in View (at AppContainer.js:106)
in RCTView (at View.js:34)
in View (at AppContainer.js:132)
in AppContainer (at renderApplication.js:39)
Expected Behavior
No Error.
How to reproduce
I Have just used what is detailed in readme.md. dont know about it.
Your Environment
software | version |
---|---|
react-native-offline | ^5.7.0 |
react-native | 0.63.2 |
node | v14.13.1 |
npm or yarn | 1.22.5 |
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
stale commented
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.