Skip to content
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

[BUG] - 2.6.4 Cached Avatars Still Flickering #4271

Open
daveycodez opened this issue Dec 7, 2024 · 6 comments
Open

[BUG] - 2.6.4 Cached Avatars Still Flickering #4271

daveycodez opened this issue Dec 7, 2024 · 6 comments

Comments

@daveycodez
Copy link

NextUI Version

2.6.4

Describe the bug

The previous issue was closed but I want to notify that this is still an issue in 2.6.4. Avatars that are cached should be rendered immediately but they are still fading in

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Use any Avatar, Image, or User component

Expected behavior

Cached avatars should be instantly rendered

Screenshots or Videos

No response

Operating System Version

macOS

Browser

Chrome

Copy link

linear bot commented Dec 7, 2024

@daveycodez
Copy link
Author

#3987

@wingkwong
Copy link
Member

seems the changes caused image ReferenceError in SSR and got rollbacked in #4122

@daveycodez
Copy link
Author

daveycodez commented Dec 8, 2024

My fix can be seen here:

https://github.com/daveyplate/nextui-fixed-avatar/blob/main/src/avatar.jsx

For SSR mainly I am using a hook called useIsHydrated and only referencing Image when isHydrated is true

@wingkwong
Copy link
Member

can you create a PR for us to review?

@daveycodez
Copy link
Author

can you create a PR for us to review?

I haven't made a PR here before I'm not sure the exact steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants