Closed axel-havukangas-tt closed 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 |
Hides private atoms in
useAtomsSnapshot
anduseAtomsDevtools
hooks, similarly to how<DevTools />
has done. This can be disabled using theshouldShowPrivateAtoms
option. As discussed in https://github.com/jotaijs/jotai-devtools/discussions/103The implementation of this consists of moving the logic from
DevTools
components into theuseAtomsSnapshot
, which is used by bothDevTools
anduseAtomsDevtools
. Now the logic for hiding private atoms is shared by all the tools.