We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
is there a plan to make ahooks work with React 19? When i try to upgrade to React 19 with pnpm i get warning that package is not supporting React 19.
├─┬ ahooks 3.8.1 └── ✕ unmet peer react@"^16.8.0 || ^17.0.0 || ^18.0.0": found 19.0.0-rc-66855b96-20241106
The text was updated successfully, but these errors were encountered:
When I forcibly installed react@19 and react-dom@19 using --force, it works, but the console shows the following warning:
Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.
Sorry, something went wrong.
Currently, my solution is to add the overrides attributes under package.json to support selective version overrides.
overrides
package.json
Example
{ "overrides": { "ahooks": { "react": "$react", "react-dom": "$react-dom" } } }
No branches or pull requests
is there a plan to make ahooks work with React 19?
When i try to upgrade to React 19 with pnpm i get warning that package is not supporting React 19.
The text was updated successfully, but these errors were encountered: