Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Patternslib
Patterns
Repository navigation
Code
Issues
89
(89)
Pull requests
30
(30)
Actions
Projects
Wiki
Security and quality
Insights
More
items
Lifecycle auto destroy
- #1309
#1309
Merged
thet
merged 22 commits into
master
Patternslib/Patterns:master
from
lifecycle-auto-destroy
Patternslib/Patterns:lifecycle-auto-destroy
Copy head branch name to clipboard
Nov 27, 2026
Conversation
Commits
22
(22)
Checks
Files changed
Merged
Lifecycle auto destroy
#1309
thet
merged 22 commits into
master
Patternslib/Patterns:master
from
lifecycle-auto-destroy
Patternslib/Patterns:lifecycle-auto-destroy
Copy head branch name to clipboard
Commits
Commits on Nov 27, 2026
maint(docs): Start with ADR records.
thet
committed
b3f8101
View commit details
Copy full SHA for b3f8101
Browse repository at this point
maint(docs): Add ADRs for the automatic pattern lifecycle.
Show description for 53bbf9f
thet
committed
53bbf9f
View commit details
Copy full SHA for 53bbf9f
Browse repository at this point
feat(core basepattern): Destroy patterns automatically when removed from the DOM.
Show description for 30e0dda
thet
committed
30e0dda
View commit details
Copy full SHA for 30e0dda
Browse repository at this point
feat(core lifecycle): Add self managed containers.
Show description for 25d6f25
thet
committed
25d6f25
View commit details
Copy full SHA for 25d6f25
Browse repository at this point
feat(core basepattern): Add instance scoped remove_event_listener.
Show description for 628f022
thet
committed
628f022
View commit details
Copy full SHA for 628f022
Browse repository at this point
fix(core basepattern): Remove listeners registered after a destroy during init.
Show description for f3a201f
thet
committed
f3a201f
View commit details
Copy full SHA for f3a201f
Browse repository at this point
maint(docs): Add ADR 0003 for the WeakMap based event listener registry.
Show description for 7d27bb8
thet
committed
7d27bb8
View commit details
Copy full SHA for 7d27bb8
Browse repository at this point
feat(core events): Do not keep elements alive in the event listener registry.
Show description for 0f91479
thet
committed
0f91479
View commit details
Copy full SHA for 0f91479
Browse repository at this point
maint(docs): Add ADR 0004 for event listener scopes.
Show description for 5dff276
thet
committed
5dff276
View commit details
Copy full SHA for 5dff276
Browse repository at this point
feat(core events): Add listener scopes.
Show description for 8c72943
thet
committed
8c72943
View commit details
Copy full SHA for 8c72943
Browse repository at this point
feat(core basepattern): Use a listener scope for instance scoped listeners.
Show description for 72f3f70
thet
committed
72f3f70
View commit details
Copy full SHA for 72f3f70
Browse repository at this point
feat(pat-tooltip): Keep patterns in the tooltip content across hide and show.
Show description for 00c2f91
thet
committed
00c2f91
View commit details
Copy full SHA for 00c2f91
Browse repository at this point
fix(pat-depends): Update the state after a form reset.
Show description for bfb50bb
thet
committed
bfb50bb
View commit details
Copy full SHA for bfb50bb
Browse repository at this point
fix(pat-depends): Remove the input listeners on destroy.
Show description for 935f5ca
thet
committed
935f5ca
View commit details
Copy full SHA for 935f5ca
Browse repository at this point
fix(pat-autofocus): Remove the pat-update handler on destroy.
Show description for d9b7b15
thet
committed
d9b7b15
View commit details
Copy full SHA for d9b7b15
Browse repository at this point
fix(pat-collapsible): Remove the trigger handlers on destroy.
Show description for 91d7a3b
thet
committed
91d7a3b
View commit details
Copy full SHA for 91d7a3b
Browse repository at this point
fix(pat-scroll-marker): Disconnect the IntersectionObserver on destroy.
Show description for 10a3c3e
thet
committed
10a3c3e
View commit details
Copy full SHA for 10a3c3e
Browse repository at this point
fix(pat-scroll): Remove the scroll end listener from the scroll container.
Show description for 2710046
thet
committed
2710046
View commit details
Copy full SHA for 2710046
Browse repository at this point
fix(pat-bumper): Update all bumpers sharing a scroll container.
Show description for 246798a
thet
committed
246798a
View commit details
Copy full SHA for 246798a
Browse repository at this point
fix(pat-navigation): Remove the listeners on destroy.
Show description for bebe24e
thet
committed
bebe24e
View commit details
Copy full SHA for bebe24e
Browse repository at this point
fix(pat-validation): Remove the listeners on destroy.
Show description for a19c17a
thet
committed
a19c17a
View commit details
Copy full SHA for a19c17a
Browse repository at this point
fix(pat-tooltip): Remove the listeners on destroy.
Show description for 70f5621
thet
committed
70f5621
View commit details
Copy full SHA for 70f5621
Browse repository at this point
You can’t perform that action at this time.