Skip to content

Enhancer stability improvements#640

Merged
feruzm merged 1 commit into
developfrom
seer/fix/dom-enhancer-robustness
Feb 4, 2026
Merged

Enhancer stability improvements#640
feruzm merged 1 commit into
developfrom
seer/fix/dom-enhancer-robustness

Conversation

@sentry
Copy link
Copy Markdown
Contributor

@sentry sentry Bot commented Feb 3, 2026

Fixes ECENCY-NEXT-13PT. The issue was that: DOM enhancers lack isConnected and parentElement checks before replaceChild, causing null is not an object after ChunkLoadError on iOS.

  • Added try...catch blocks to all link and operation enhancer functions to gracefully handle potential errors during DOM manipulation.
  • Implemented checks for el.isConnected and el.parentElement before proceeding with enhancement and before replacing elements, ensuring that only valid, connected DOM elements are processed.
  • Introduced console.warn messages to log instances where elements are skipped due to being disconnected from the DOM or when an error occurs during the enhancement process.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 684721

Not quite right? Click here to continue debugging with Seer.

@feruzm
Copy link
Copy Markdown
Member

feruzm commented Feb 4, 2026

@codex review this

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@feruzm feruzm merged commit 3a5f43f into develop Feb 4, 2026
1 check passed
@feruzm feruzm deleted the seer/fix/dom-enhancer-robustness branch February 4, 2026 11:43
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.

1 participant