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

Fixed a small issue with re-renderers being dropped #356

Conversation

foscomputerservices
Copy link
Contributor

The code was clearing the queuedRerenders set after processing all of the updates on each re-renderer. However, during processing it is possible that new values were enqueued. By clearing the set afterwards, these newly queued re-renderers were accidentally dropped.

This would cause some Views to not update when @State was changed.

The code was clearing the queuedRerenders set after processing all of the updates on each re-renderer.  However, during processing it is possible that new values were enqueued.  By clearing the set afterwards, these newly queued re-renderers were accidentally dropped.

This would cause some Views to not update when @State was changed.
@MaxDesiatov MaxDesiatov added the bug Something isn't working label Jan 18, 2021
Copy link
Collaborator

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, thanks for the fix! 👏

@foscomputerservices foscomputerservices merged commit 6955e56 into TokamakUI:main Jan 18, 2021
@foscomputerservices foscomputerservices deleted the dropped-queued-rerenderers branch January 18, 2021 12:39
@MaxDesiatov
Copy link
Collaborator

@mortenbekditlevsen I wonder if this may fix issues you saw with GTK on Linux not re-rendering the view tree on updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants