Skip to content

Conversation

@KrzysztofMoch
Copy link
Collaborator

Summary

improves error handling in the VideoView component to better handle cases where the native video view is unmounted before the native manager can find it. Instead of throwing an error in this rare scenario, a warning is logged, preventing unnecessary exceptions and improving stability, especially on slower devices.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves error handling in the VideoView component to gracefully handle a rare race condition where the native video view is unmounted before the native manager can locate it. Instead of throwing an error, the code now logs a warning when this specific scenario is detected, preventing crashes on slower devices.

Key Changes:

  • Enhanced error handling to detect and gracefully handle view/not-found errors when the view is quickly mounted and unmounted
  • Added VideoComponentError to imports for proper error type checking
  • Added nitroId to the setupViewManager callback's dependency array

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@KrzysztofMoch KrzysztofMoch merged commit 556d1be into v7 Nov 30, 2025
4 checks passed
@KrzysztofMoch KrzysztofMoch deleted the fix-v7/view-not-found-crash branch November 30, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants