Skip to content

Revert "DEV: Reduce unnecessary UI updates when posts change (#33864)" #33917

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

Merged
merged 1 commit into from
Jul 29, 2025

Conversation

megothss
Copy link
Contributor

This reverts commit 38f7517.

@megothss megothss merged commit 7062666 into main Jul 29, 2025
17 checks passed
@megothss megothss deleted the dev/revert-33864 branch July 29, 2025 01:18
megothss added a commit that referenced this pull request Jul 29, 2025
This commit refactors the post update logic in the post stream and store
services to minimize unnecessary UI rerenders:

- In `StoreService`, properties are selectively updated: only changed
values are applied, preventing redundant updates and improving render
efficiency.
- Uses `untrack` to avoid creating unwanted Glimmer tracking contexts
during property comparisons, reducing computation errors.
- All property updates are batched to trigger a single rerender.

This PR is improves #33864
which was reverted by #33917
due to the possibility of tracking errors in edge cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants