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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user