Add after_load() lifecycle docs, fix Rsx_Tabs hash handling, add automated session cleanup
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -598,8 +598,9 @@ 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. **on_ready()** → All children guaranteed ready (bottom-up, async)
|
||||
6. **on_stop()** → Teardown when destroyed (sync)
|
||||
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.
|
||||
6. **on_ready()** → All children guaranteed ready (bottom-up, async)
|
||||
7. **on_stop()** → Teardown when destroyed (sync)
|
||||
|
||||
If `on_load()` modifies `this.data`, component renders twice (defaults → populated). on_ready() fires once after final render.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user