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

add test for flushPending #2809

Merged

Conversation

dmaskasky
Copy link
Collaborator

Check List

  • pnpm run prettier for formatting code and docs

Copy link

vercel bot commented Nov 11, 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 11, 2024 9:32pm

Copy link

codesandbox-ci bot commented Nov 11, 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

github-actions bot commented Nov 11, 2024

LiveCodes Preview in LiveCodes

Latest commit: 1ece6a1
Last updated: Nov 11, 2024 9:32pm (UTC)

Playground Link
React demo https://livecodes.io?x=id/6XUKAL3WJ

See documentations for usage instructions.

Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@dai-shi dai-shi merged commit 8f58d5f into pmndrs:fix/flush-pending-async Nov 11, 2024
24 of 40 checks passed
dai-shi added a commit that referenced this pull request Nov 14, 2024
* fix: flushPending in async write

* isSync in onMount to

* apply the change

* add test for flushPending (#2809)

* Fix/flush pending finally everywhere (#2816)

* call onmount flushPending in finally block

* temp remove unmount test cases. to be fixed later with pending injection (#2810)

* flushpending everywhere

* Apply suggestions from code review

---------

Co-authored-by: Daishi Kato <[email protected]>

* fix type assertion

---------

Co-authored-by: David Maskasky <[email protected]>
dmaskasky added a commit to dmaskasky/jotai that referenced this pull request 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.

2 participants