-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Revert "fix(compiler-sfc): add error handling for defineModel() without variable assignment" #13390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ut varia…" This reverts commit 00734af.
WalkthroughThe changes remove the requirement for Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Compiler
participant defineModel
User->>Compiler: Writes <script setup> with defineModel({...})
Compiler->>defineModel: Processes defineModel({...}) call
defineModel-->>Compiler: Returns model declaration (no assignment check)
Compiler-->>User: Compiles script without requiring assignment
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-ssr
@vue/compiler-sfc
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
Size ReportBundles
Usages
|
Reverts #13352
Summary by CodeRabbit
defineModel()
without assigning it to a variable would cause an error. Now,defineModel()
can be used as a standalone call without assignment.defineModel()
, removing assignment requirements and related error checks.