Skip to content

fix: must clean elements from maps on remove from DOM#124

Merged
pauldambra merged 1 commit intomainfrom
fix/pd/moar-leak
Jan 29, 2026
Merged

fix: must clean elements from maps on remove from DOM#124
pauldambra merged 1 commit intomainfrom
fix/pd/moar-leak

Conversation

@pauldambra
Copy link
Member

@pauldambra pauldambra commented Jan 29, 2026

when watching detached elements while the posthog app is running

i see detached elements accruing when react components unmount

i believe one of the sources is a strong reference to the element here

so let's clean these maps when removing elements

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@pauldambra pauldambra marked this pull request as ready for review January 29, 2026 14:08
@pauldambra pauldambra requested review from a team, TueHaulund, fasyy612 and ksvat and removed request for a team January 29, 2026 14:08
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pauldambra pauldambra merged commit ccb77f1 into main Jan 29, 2026
9 checks passed
@pauldambra pauldambra deleted the fix/pd/moar-leak branch January 29, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants