Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(useAtomDevtools): disconnect from redux devtools on unmount #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

None yet

2 participants