Constructor
new DeadlockManager(evaluator, renderer, eventBinderopt, componentNameopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
evaluator |
object | Expression evaluator. |
|
renderer |
object | Template renderer. |
|
eventBinder |
object |
<optional> |
Event binder. |
componentName |
string |
<optional> |
Parent component name. |
Classes
Methods
findBoundaries(root) → {Array:.<Element:>}
Finds all [data-ax-deadlock] boundary containers within a root element.
Parameters:
| Name | Type | Description |
|---|---|---|
root |
Element |
Returns:
isTripped(container) → {boolean}
Checks if a boundary is currently tripped.
Parameters:
| Name | Type | Description |
|---|---|---|
container |
Element | The [data-ax-deadlock] element. |
Returns:
- Type
- boolean
reset(container)
Resets a tripped boundary so it can render normally again.
Parameters:
| Name | Type | Description |
|---|---|---|
container |
Element |
trip(container, erroropt, scopeopt)
Trips a deadlock boundary, unmounting its active child subtree and rendering fallback UI.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
container |
Element | The [data-ax-deadlock] element. |
|
error |
Error | object |
<optional> |
The error or diagnostic details. |
scope |
object |
<optional> |
Evaluation scope. |