Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/flush pending finally everywhere 2 #2817

Closed

Conversation

dmaskasky
Copy link
Collaborator

@dmaskasky dmaskasky commented Nov 14, 2024

Related Bug Reports or Discussions

Expands on #2816

Summary

Adds test cases for every error case.

Check List

  • c for formatting code and docs

Copy link

codesandbox-ci bot commented Nov 14, 2024

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.

Copy link

vercel bot commented Nov 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jotai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 3:32am

yairEO and others added 12 commits November 13, 2024 19:26
…#2805)

* Update location.mdx

Added an important warning note against instantiating `atomWithLocation` more than once in an app

* ran `prettier` npm script and added 2 `code` annotations for the new paragraph
* fix(unstable_derive): expose atomRead and atomWrite

* Fix/unstable derive - add more tests (pmndrs#2751)

* fix(unstable_derive): add tests

* test(unstable_derive): add failing test

* remove originAtomState

* feat: atomOnMount

* adjust test

* is this too naive?

* Update src/vanilla/store.ts

Co-authored-by: David Maskasky <dmaskasky@otter.ai>

---------

Co-authored-by: David Maskasky <dmaskasky@otter.ai>
* Fix undefined or null atoms

* Simplify conditional, only in dev mode

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>

* Update useSetAtom.ts

* move warning to store.ts

* move the warning in getAtomState

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
Co-authored-by: daishi <daishi@axlight.com>
* fix(utils): make 'loadable' update immediate after resolve

* fix comments in pmndrs#2790

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
@dmaskasky dmaskasky force-pushed the fix/flush-pending-finally-everywhere-2 branch from e9a6b08 to 67b55c1 Compare November 14, 2024 03:31
@dmaskasky dmaskasky marked this pull request as draft November 14, 2024 03:32
@dmaskasky
Copy link
Collaborator Author

Rebase issue, now i'm seeing too many commits, and unrelated changes.

@dmaskasky dmaskasky closed this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants