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

[Problem/Question]

I am receiving a warning in my react native app when navigation out from the GroupChannelFragment

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 a useEffect cleanup function.
    in Unknown (at Chat.tsx:137) 
 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 a useEffect cleanup function.
    in VideoFileMessage (at GroupChannelMessageRenderer/index.tsx:167

Here is my Chat component

function Chat() {
  const {sdk} = useSendbirdChat();
  const {channel} = useGroupChannel(sdk, params.channelUrl);
  return <GroupChannelFragment
        channel={channel}
        keyboardAvoidOffset={headerHeight}
        onChannelDeleted={() => {
          // Navigate to GroupChannelList function.
        }}
        onPressHeaderLeft={() => {
          navigation.goBack();
        }}
        onPressHeaderRight={() => {
          // Navigate to Settings
        }}
      />
}

Hello @Gerald_Campana

Welcome to the Sendbird community!

What is the version you are using? Do you mind updating to our latest version and share your observations?

Latest version is v3.0.4 : GitHub - sendbird/sendbird-uikit-react-native: Build chat in minutes with Sendbird UIKit open source code.

I am already using the latest version v3.0.4

Hello @Gerald_Campana

There is no memory leakage occurring actually.

It is a simple warning message, and this warning appears if you leave the screen before loading the video thumbnail.

We have conducted optimisations for fetching video thumbnails, and they will be released together in the next version(v3.1.0).

Let me know if this helps in clarifying a few things here.

1 Like

I see. ok. thank you!