-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Fixing small bugs #17037
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
Fixing small bugs #17037
Conversation
- Fix SelectApp component to properly handle controlled values when not found in search results - Fix infinite re-render issue in ComponentFormContainer by memoizing configurableProps
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThis update increments the version of the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SelectApp
participant API
User->>SelectApp: Types in input
SelectApp->>SelectApp: Update inputValue
Note right of SelectApp: Debounce inputValue (300ms)
SelectApp->>API: Fetch apps with debounced query (q)
API-->>SelectApp: Return apps list
SelectApp->>SelectApp: Determine selected value (from apps or fallback to prop)
sequenceDiagram
participant ComponentFormContainer
participant FormContextProvider
ComponentFormContainer->>FormContextProvider: Render with props
FormContextProvider->>FormContextProvider: Memoize configurableProps
FormContextProvider-->>ComponentFormContainer: Provide stable configurableProps
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
docs-v2/next.config.mjsOops! Something went wrong! :( ESLint: 8.57.1 Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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 (
|
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: 0
🧹 Nitpick comments (1)
packages/connect-react/CHANGELOG.md (1)
7-8: Minor grammatical improvement suggested.The changelog accurately documents the fixes. Consider this small grammatical improvement:
-- Fix SelectApp component to properly handle controlled values when not found in search results +- Fix the SelectApp component to properly handle controlled values when not found in search results🧰 Tools
🪛 LanguageTool
[uncategorized] ~7-~7: You might be missing the article “the” here.
Context: ...hangelog # [1.2.1] - 2025-06-07 - Fix SelectApp component to properly handle controlled...(AI_EN_LECTOR_MISSING_DETERMINER_THE)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
packages/connect-react/CHANGELOG.md(1 hunks)packages/connect-react/package.json(1 hunks)packages/connect-react/src/components/SelectApp.tsx(4 hunks)packages/connect-react/src/hooks/form-context.tsx(2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
packages/connect-react/src/components/SelectApp.tsx (1)
packages/sdk/src/shared/index.ts (1)
AppResponse(122-122)
🪛 LanguageTool
packages/connect-react/CHANGELOG.md
[uncategorized] ~7-~7: You might be missing the article “the” here.
Context: ...hangelog # [1.2.1] - 2025-06-07 - Fix SelectApp component to properly handle controlled...
(AI_EN_LECTOR_MISSING_DETERMINER_THE)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: pnpm publish
- GitHub Check: Lint Code Base
🔇 Additional comments (5)
packages/connect-react/src/hooks/form-context.tsx (1)
190-206: Excellent fix for the infinite re-render issue!The memoization of
configurablePropsis a proper solution to prevent unnecessary recalculations. The dependencies are comprehensive and correctly capture all the factors that should trigger a recalculation.packages/connect-react/src/components/SelectApp.tsx (3)
16-19: Well-implemented debouncing solution!The separation of
inputValuefrom the debounced query stateqis a clean approach. The 300ms delay strikes a good balance between responsiveness and API efficiency.Also applies to: 28-34
47-49: Perfect fix for controlled value handling!This ensures the selected value is always displayed even when it's not present in the current search results, which is essential for proper controlled component behavior.
106-111: Smart filtering of input change actions!Only responding to "input-change" actions prevents unnecessary state updates from blur, menu-close, and other non-typing events. This improves performance and reduces potential side effects.
packages/connect-react/package.json (1)
3-3: Appropriate version bump for bug fixes.The patch version increment from 1.2.0 to 1.2.1 correctly follows semantic versioning for the bug fixes included in this release.
This wasn't gonna work
WHY
Summary by CodeRabbit
Bug Fixes
Chores
New Features
/connect/demorequests to an external demo site.