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

[Feature Request] Improve `jotai-scope` support #133

Closed vetan2 closed 4 months ago

vetan2 commented 4 months ago

image

Due to the current implementation of jotai-scope, which creates a copy of an atom regardless of its scope (as shown in this code), duplicated atoms appear in the dev-tool panel when an atom is accessed within multiple scopes.

So I would like to suggest the following enhancements:

  1. Prevent displaying duplicated atoms in the devtool panel when they are duplicated by a ScopeProvider that they are not scoped in.
  2. Include a feature in the devtool to show which ScopeProvider each atom is associated with.

Thank you for considering these improvements.

dai-shi commented 4 months ago

(This sounds like a tough one. Needs coordination with jotai-scope side.)