Skip to content

chore: Drop usage of isomorphic act #1019

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

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Mar 1, 2022

Failures are fixed with #1018

What:

Only use documented testing APIs

Why:

There's no explicit mention of "isomorphic act" landing with React 18 so let's just drop it's usage (react-dom/test-utils uses it anyway). Removing its usage simplifies code while also using less React internals.

How:

Drop usage of React.unstable_act

Checklist:

  • [ ] Documentation added to the
    docs site
  • [ ] Tests
  • [ ] TypeScript definitions updated
  • Ready to be merged

@eps1lon eps1lon marked this pull request as ready for review March 1, 2022 18:32
@eps1lon eps1lon merged commit 33cc72c into testing-library:alpha Mar 1, 2022
@eps1lon eps1lon deleted the chore/no-unstable-act branch March 1, 2022 18:32
@github-actions
Copy link

github-actions bot commented Mar 4, 2022

🎉 This PR is included in version 13.0.0-alpha.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant