You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In my Next.js application, I've wrapped my components using the ImgixProvider from the react-imgix library, specifying a domain for Imgix components. While all Imgix components correctly utilize this domain parameter, the Background component fails to do so.
To Reproduce
Wrap a Background component with the ImgixProvider.
Set the domain within the provider.
Provide a source for the background without including the domain.
Observe the error that occurs.
import{Background,ImgixProvider}from'react-imgix'<ImgixProviderdomain={IMGIX_DOMAIN}><Imgixsrc="image.jpg"width={100}/>{/* The Imgix component successfully uses the domain from the Provider */}<Backgroundsrc="image.png"className="blog-title"><h2>Blog Title</h2></Background>{/* The Background component fails to utilize the domain from the Provider */}</ImgixProvider>
Expected behaviour
I expect the Background component to correctly utilize the domain specified in the ImgixProvider, ensuring consistent behavior across all Imgix components.
The text was updated successfully, but these errors were encountered:
mtzo09-dev
changed the title
The Background component is not taking the domain parameter from the the ImgixProvider
Background component doesn't utilize ImgixProvider's domain parameter
Nov 22, 2023
@mtzo09-dev we have released a rc tag if you want to try out the changes while we are testing.
You can update you react-imgix in package.json to 9.8.1-rc.2 or see this sandbox with the rc tag applied
Thank you, @longevitytina! I'll definitely test the changes with my team. Also, thank you for letting me know about the release candidate tag. We'll give it a try and provide feedback accordingly.
Describe the bug
In my Next.js application, I've wrapped my components using the
ImgixProvider
from thereact-imgix
library, specifying a domain for Imgix components. While all Imgix components correctly utilize this domain parameter, theBackground
component fails to do so.To Reproduce
Expected behaviour
I expect the Background component to correctly utilize the domain specified in the ImgixProvider, ensuring consistent behavior across all Imgix components.
The text was updated successfully, but these errors were encountered: