Repository navigation
Report page crashes, recover from stale chunks, and survive page translation - #484
Open
eugenia-scandit wants to merge 1 commit into
Open
eugenia-scandit wants to merge 1 commit into
eugenia-scandit wants to merge 1 commit into
Conversation
…slation - Errors caught by the error boundaries never reach window.onerror, so exception autocapture missed them. Both fallbacks now report the crash to PostHog, waiting up to 15 s for it to load and respecting an opt-out. - A first page load that asks for chunks a deploy removed fails before hydration, as an unhandled rejection, and leaves the page inert. It now reloads, at most once per page per tab in 10 minutes; a failure the guard blocks is reported. After the app has started, failed chunks (link preloads on hover) are left to Docusaurus. - Browser translation moves text nodes React owns, and React's next removeChild or insertBefore throws. A guard tolerates the moved node and logs a warning (the workaround from react/react#11538). translate="no" on the copyable commands, the agent picker and both framework pickers. - capturePostHogEvent and the crash reporter share one helper for calling PostHog (callPostHog), so the availability, opt-out and error rules live in one place. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
window.onerror, so exception autocapture missed them. Both fallbacks now report the crash to PostHog, waiting up to 15 s for it to load and respecting an opt-out.removeChild/insertBeforethrows. A guard tolerates the moved node and logs a warning (the workaround from Make React resilient to DOM mutations from Google Translate react/react#11538).translate="no"on the copyable commands, the agent picker and both framework pickers.capturePostHogEventand the crash reporter share one helper (callPostHog) for the availability, opt-out and error rules.