jotaijs / jotai-devtools

A powerful toolkit to enhance your development experience with Jotai
https://jotai.org/docs/tools/devtools
MIT License
124 stars 29 forks source link

feat: hide private atoms in utils #105

Closed axel-havukangas-tt closed 11 months ago

axel-havukangas-tt commented 11 months ago

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 https://github.com/jotaijs/jotai-devtools/discussions/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[bot] commented 11 months ago

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 7a315089029ca5ca077327a9a85ecd634094e64e:

Sandbox Source
React Configuration
React TypeScript Configuration