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

Bug: Tests hang when using async act() with "next" and "experimental" release channels #26316

Closed
bvaughn opened this issue Mar 5, 2023 · 2 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@bvaughn
Copy link
Contributor

bvaughn commented Mar 5, 2023

Repro case here:
https://github.com/bvaughn/react-createRoot-Suspense-async-act

npm install
npm run test

This is stripped down to the point of being a pretty silly test case. I was trying to report a more complicated bug, related to a Suspense cache invalidation, but noticed that I'm having difficulty getting even a more simple case to work with "next" and "experimental" release channels.

Maybe this has to do with changes related to new use semantics?


Note that with react/react-dom "latest" channel installed– the tests behave as I would expect. One fails with a warning about an update outside of act and the other passes. With either "next" or "experimental" channel though, the async act test case hangs forever.

cc @acdlite

@bvaughn bvaughn added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Mar 5, 2023
@bvaughn
Copy link
Contributor Author

bvaughn commented Mar 5, 2023

Out of curiosity, I updated to the "experimental" channel and replaced the throw mechanism with use(promise) – and the async act test still hangs.

@bvaughn
Copy link
Contributor Author

bvaughn commented Mar 6, 2023

Fixed via #26317

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

1 participant