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

fix bookpreview - no image file changes placeholder color #52

Open
szkieb opened this issue Oct 6, 2022 · 0 comments
Open

fix bookpreview - no image file changes placeholder color #52

szkieb opened this issue Oct 6, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@szkieb
Copy link
Contributor

szkieb commented Oct 6, 2022

in bookpreview component when there is no image source available a placeholder will be used in its place.
The color of the placeholder is determined randomly. The problem is that the randomizer triggers way too often.

I think we can simply wrap the randomizer in a useEffect to make sure it only runs once.

@szkieb szkieb added the bug Something isn't working label Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant