-
-
Notifications
You must be signed in to change notification settings - Fork 4
Wrap submit call in startTransition() to fix error being thrown #3
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
WalkthroughThis pull request updates the Changes
Sequence DiagramsequenceDiagram
participant C as Component/Hook
participant R as reset() Function
participant T as startTransition
participant S as submit
C->>R: Call reset()
R->>T: Wrap submit(null) with startTransition
T->>S: Execute submit(null)
S-->>T: Acknowledge state reset
T-->>R: Complete transition
R-->>C: Return updated state
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Changes
Why Changes are Needed
Otherwise the following error will be thrown:
Versions:
NextJs v15.2.2
React v19.0.0
Resources:
facebook/react#28491 (comment)
In any case, thanks for the great writeup!
Summary by CodeRabbit
Summary by CodeRabbit