-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Minor] Add Source and Image Component + other small performance improvements. #67
Conversation
make code more efficent set blurryPlaceholder to false
Someone is attempting to deploy a commit to a Personal Account owned by @ObieMunoz on Vercel. @ObieMunoz first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hi @bertybot2, These changes look good overall. Please update the associated unit tests that are failing. |
CC: @bertybot |
@bertybot The automated vercel deployment is approved, you should be able to see the demo now. I can get you the api key if you'd like it locally. |
Whoops forgot to update the call when I re-added blur. |
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.
lgtm
released in #68 |
Overview
Added
Source
component and exposedImage
component so different images can be displayed at different viewports. Exposing the Image component also allows more fine-grained control.Other changes
Set
blurryPlaceholder
default to off. Since theblurryPlaceholder
adds an extra network request, and therefore degrades performance. It should only be added when the use case demands it. I think in most cases people will not need theblurryPlaceholder
since images load rather quickly when there is a small handful and therefore it should default to off.small code improvements
Notes
Really couldn't test the demo because I do not have a Hygraph token if I could get that Ill make sure it works.