Cleanup by Saneamiento

This commit is contained in:
2026-03-26 14:37:59 +01:00
parent 26177b7c4f
commit 90ff065f6d
28 changed files with 39 additions and 39 deletions

View File

@@ -47,7 +47,7 @@ $.mount(Counter, '#sidebar-widget');
---
## 🔄 How it Works (Lifecycle & Saneamiento)
## 🔄 How it Works (Lifecycle & Cleanup)
When `$.mount` is executed, it performs these critical steps to ensure a leak-free environment:
@@ -81,5 +81,5 @@ instance.destroy();
| **Mount to CSS Selector** | `$.mount(App, '#root')` |
| **Mount to DOM Node** | `$.mount(App, myElement)` |
| **Clean & Re-mount** | Calling `$.mount` again on the same target |
| **Total Saneamiento** | `const app = $.mount(App); app.destroy();` |
| **Total Cleanup** | `const app = $.mount(App); app.destroy();` |