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

feat: hide private atoms in utils #105

Merged

Conversation

axel-havukangas-tt
Copy link
Contributor

@axel-havukangas-tt axel-havukangas-tt commented Oct 6, 2023

Hides private atoms in useAtomsSnapshot and useAtomsDevtools hooks, similarly to how <DevTools /> has done. This can be disabled using the shouldShowPrivateAtoms option. As discussed in #103

The implementation of this consists of moving the logic from DevTools components into the useAtomsSnapshot, which is used by both DevTools and useAtomsDevtools. Now the logic for hiding private atoms is shared by all the tools.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 6, 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 7a31508:

Sandbox Source
React Configuration
React TypeScript Configuration

@arjunvegda arjunvegda marked this pull request as ready for review October 7, 2023 15:00
Copy link
Member

@arjunvegda arjunvegda left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks again for the PR 🙏

I'll merge this soon!

@arjunvegda arjunvegda merged commit c925680 into jotaijs:main Oct 14, 2023
2 checks passed
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.

2 participants