Skip to content

Commit

Permalink
Refactor ScopeProvider (#33)
Browse files Browse the repository at this point in the history
Refactor ScopeProvider:
- Unscoped derived atoms read nearest scoped atoms.
- Scoped writable atoms can read themselves
- Inherited writable atoms share the same value
- add debugName prop to ScopeProvider
- Scope does not read parent scopes above a Jotai Provider

---------

Co-authored-by: David Maskasky <[email protected]>
  • Loading branch information
dmaskasky and David Maskasky authored May 23, 2024
1 parent 19592aa commit ca2cf5f
Show file tree
Hide file tree
Showing 16 changed files with 1,978 additions and 576 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.swp
node_modules
/dist
.vscode
330 changes: 0 additions & 330 deletions __tests__/04_derived.tsx

This file was deleted.

Loading

0 comments on commit ca2cf5f

Please sign in to comment.