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

Memoize empty view face so it does not change on rerender #193

Merged

Conversation

martinek
Copy link
Contributor

This fixes small issue with EmptyView

Currently when EmptyView rerenders, the random face is always regenerated. Since EmptyView can be rerendered multiple times, this causes faces to change and looks weird.

This PR memoizes the random face, so once EmptyView renders it does not change the face.

(this is the correct branch)

@AriaMoradi AriaMoradi merged commit 1510c5a into Suwayomi:master Nov 10, 2022
@martinek martinek deleted the fix/empty-view-face-memoization branch November 12, 2022 11:46
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

Successfully merging this pull request may close these issues.

2 participants