-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: export new act when available #1319
Conversation
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. Latest deployment of this branch, based on commit 5ee9d3d:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did you test this?
I've used From your comment, I realized that we probably also need to define Edit: I think I understand what happened, since |
Yeah I don't think this ever worked for versions where TypeScript should error if you try to import something that doesn't exist. We probably need to Let's double check this works in versions without |
And we also need |
Using |
Following your idea @eps1lon, I've created this repo for repro: https://github.com/MatanBobi/rtl-deprecated-act-repro
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works: https://github.com/eps1lon/rtl-deprecated-act-repro
Only errors on an error specific to older versions of @types/react
.
@eps1lon Related docs PR: |
Yesss thank you. This helped me. When I saw your post, I downloaded the latest version and my program started running, no warning after that. Tyty
|
Resolves #1316
What: This PR exports the correct act if available to avoid deprecation warnings.