You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f50ea18
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -5867,6 +5867,7 @@ interface, and each operation is also exported directly:
5867
5867
| `content(slot?)` | Render the invoking component's content, or a named slot of it; throws `ContentError` when that content fails (§5.1.2, §6.3) | throws a missing-provider error |
5868
5868
| `hasContent()` | Whether the invoking element was written with content rather than self-closed | throws a missing-provider error |
5869
5869
| `hasBinding()` | Whether the invocation has an engine-owned result binding — whether `as` was written (§6.10) | throws a missing-provider error |
5870
+
| `bindResult(name)` | Reserve a separate JSON result binding in the caller scope and return a setter | throws: not inside a function component invocation |
5870
5871
| `hasCapture(name)` | Whether the invocation wrote this capture prop at all (§6.5) | `false` |
5871
5872
| `capture(name)` | Evaluate a capture prop now, against the caller's bindings, and deliver the result by reference (§6.5) | throws: not inside a function component invocation |
5872
5873
| `handleFailure(failure)` | What an ordinary function-component failure means, after complete invocation teardown (§6.9) | fails the operation with `failure.error` |
@@ -5965,8 +5966,8 @@ answers for itself: a nested invocation is not told about its caller's binding,
5965
5966
and two invocations that are live at once do not see each other's.
5966
5967
5967
5968
A value component with an additional JSON result can reserve its authored name
5968
-
with `Component.operations.bindResult(name)`. It uses the same binding-name
5969
-
rules and caller scope as `as`. Reserving requires `as` and a distinct name.
5969
+
with `bindResult(name)`. It uses the same identifier validation and caller
5970
+
scope as `as`. Reserving requires `as` and a distinct name.
5970
5971
The returned setter stages the value. The engine publishes staged values after
5971
5972
the invocation finishes, its resources close, and its primary return passes
0 commit comments