-
Notifications
You must be signed in to change notification settings - Fork 46
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
Warning: React does not recognize the fetchPriority
prop on a DOM element
#425
Comments
It looks like a fix was merged, but never released facebook/react#25927 It would have to be a manual patch in https://github.com/ascorbic/unpic-img/blob/main/packages/react/src/image.tsx |
@jlarmstrongiv can you please guide me how to manually patch the image.tsx |
@acoderacom something like const { fetchPriority, ...camelizedProps } = camelizeProps(transformProps(props));
return <img fetchpriority={fetchPriority} {...camelizedProps} ref={ref} />; Though, it will depend on whether the |
Describe the bug
To Reproduce
Expected behavior
No warnings logged to the console
Desktop (please complete the following information):
I suppose the solution is using
fetchpriority
instead offetchPriority
for nowThe text was updated successfully, but these errors were encountered: