Rename after_load to on_loaded, add load_children option to load_detached_action, update npm

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2026-03-06 23:14:25 +00:00
parent d1ac456279
commit 198cd42ce1
26 changed files with 1024 additions and 145 deletions

View File

@@ -598,7 +598,7 @@ class Toggle_Button extends Component {
2. **render** → Template executes (top-down: parent before children)
3. **on_render()** → Fires after render, BEFORE children ready (top-down, sync)
4. **on_load()** → Fetch data into `this.data` (bottom-up, parallel siblings, async)
5. **after_load()** → Runs on real component (not proxy). `this.data` frozen, `this.$`/`this.state`/`this.args` accessible. Clone `this.data``this.state` for complex in-memory manipulations.
5. **on_loaded()** → Runs on real component (not proxy). `this.data` frozen, `this.$`/`this.state`/`this.args` accessible. Clone `this.data``this.state` for complex in-memory manipulations.
6. **on_ready()** → All children guaranteed ready (bottom-up, async)
7. **on_stop()** → Teardown when destroyed (sync)