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
Passing custom props to IdealImage #9930
Comments
Yes, ideal images are simple That dependency probably does not let props pass through. I plan to internalize all this legacy code someday because currently, it's a bit hard to deal with it. |
Yeah I noticed the "funny dependency graph" :) Also makes it hard to create a PR to fix this myself |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
I want to pass custom properties (namely fetchpriority=high to improve Largest Contentful Paint) to the Image of ideal-image, but this gets ignored.
The property is rendered in dev (with ideal-image config
disableInDev: true
), but not in the build.Reproducible demo
No response
Steps to reproduce
<Image img={require('../screenshot.png')} alt="My screenshot" fetchpriority="high" />
Expected behavior
The custom attributes should be rendered
Actual behavior
They aren't being rendered
Your environment
No response
Self-service
The text was updated successfully, but these errors were encountered: