Convert Spa.action property to Spa.action() method

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-29 05:49:17 +00:00
parent 1b46c5270c
commit bded711d1c
5 changed files with 161 additions and 15 deletions

View File

@@ -419,7 +419,7 @@ SUBLAYOUTS
References:
Spa.layout Always the top-level layout
Spa.action Always the bottom-level action (not a layout)
Spa.action() Always the bottom-level action (not a layout)
To access intermediate layouts, use DOM traversal or layout hooks.
@@ -516,11 +516,11 @@ NAVIGATION
Accessing Active Components:
Spa.layout Reference to current layout component instance
Spa.action Reference to current action component instance
Spa.action() Reference to current action component instance
Example:
// From anywhere in SPA context
Spa.action.reload(); // Reload current action
Spa.action().reload(); // Reload current action
Spa.layout.update_nav(); // Call layout method
Loader Title Hint:
@@ -821,7 +821,7 @@ COMMON PATTERNS
Reloading Current Action:
// Refresh current action data
Spa.action.reload();
Spa.action().reload();
Form Submission with Redirect:
async on_submit() {
@@ -880,7 +880,7 @@ DETACHED ACTION LOADING
});
What It Does NOT Affect:
- Spa.action (current live action remains unchanged)
- Spa.action() (current live action remains unchanged)
- Spa.layout (current live layout remains unchanged)
- Spa.route / Spa.params (current route state unchanged)
- Browser history