docs(vue): bind form inputs through machine events #5940
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.40) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 168 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.307
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #5940"
general
weight: 0.35
wozhenbang2004
Refs #5186.
Show how a Vue input can send an event to the actor and update the machine context, so the submit guard is re-evaluated when the input changes.
Mounted the exact example with Vue 3.5.46 and the XState v6 beta packages. Verified input updates, whitespace rejection, and successful submission. The extracted TypeScript passed strict checking.
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/statelyai/xstate/pull/5940" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
<!-- devin-review-badge-end -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Added guidance for binding Vue form inputs to state-machine context through writable computed properties and events.
Included an example showing how form updates and submission interact with context and validation guards.
Bug Fixes
* Improved snapshot handling in pure-transition actor lineages, preserving actor identity when only a later snapshot remains in use.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->