Skip to content

Conversation

@arjunvegda
Copy link
Member

@arjunvegda arjunvegda commented Mar 8, 2023

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 8, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 07cd8bb:

Sandbox Source
React Configuration
React Typescript Configuration

@arjunvegda arjunvegda changed the title fix(useAtomDevtools): disconnect from redux dectools on unmount fix(useAtomDevtools): disconnect from redux devtools on unmount Mar 8, 2023
Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Comment on lines +110 to +113
return () => {
(extension as any).disconnect();
unsubscribe?.();
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this looks like the correct fix. Thanks.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I misunderstood. Thought it's connection.disconnect().

cc @PrettyCoffee

Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need a feature from redux-devtools.

Comment on lines +110 to +113
return () => {
(extension as any).disconnect();
unsubscribe?.();
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I misunderstood. Thought it's connection.disconnect().

cc @PrettyCoffee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants