forked from pmndrs/jotai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add dev_subscribe_store (pmndrs#1790)
* feat: add dev_subscribe_store * attach notifiers on public apis * revert changes * notify on set * notify mount and unmount * fix: update unmount + state + backwards compatibility for dev_subscribe_store * fix store listeners, and deperecation message for state listener * recover original dev_subscribe_state * test: add tests for dev_* methods * test: add [DEV-ONLY] tag to tests Co-authored-by: Daishi Kato <[email protected]> * chore: adjust sed script for dev/prd only tests * test: fix test description * adding tests * test: add failing test to unmount tree dependencies on unsub * fix test styles * do not fire before flush pending --------- Co-authored-by: daishi <[email protected]> Co-authored-by: Daishi Kato <[email protected]>
- Loading branch information
1 parent
cb54160
commit e80be16
Showing
3 changed files
with
172 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters