Skip to content

fix: add isMounted for View component#186

Merged
pqoqubbw merged 2 commits intomainfrom
dmytro/view-is-mounted
Jan 30, 2026
Merged

fix: add isMounted for View component#186
pqoqubbw merged 2 commits intomainfrom
dmytro/view-is-mounted

Conversation

@pqoqubbw
Copy link
Contributor

@pqoqubbw pqoqubbw commented Jan 30, 2026

Summary

Test Plan


Note

Low Risk
Small, localized rendering-condition change intended to avoid SSR/hydration mismatches; main risk is unintentionally hiding a view until after first client render.

Overview
Updates View to gate rendering behind a client-side mounted flag set via useIsomorphicLayoutEffect, instead of relying on a memoized isVisible calculation.

This prevents the component from rendering during SSR/initial hydration when visibility can’t be reliably determined, returning null until both mounted and the matching item is active.

Written by Cursor Bugbot for commit c4afc69. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@pqoqubbw pqoqubbw merged commit f71a28a into main Jan 30, 2026
3 checks passed
@pqoqubbw pqoqubbw deleted the dmytro/view-is-mounted branch January 30, 2026 22:56
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