-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fixing component key references in Connect docs #16653
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
You can pass component keys in a structured object or as a string, updating the docs to use a common string interface to reduce complexity.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Caution Review failedThe pull request is closed. WalkthroughDocumentation examples for SDK methods were updated to use direct string identifiers instead of nested objects for components, actions, triggers, and related resources. The changes affect usage patterns in code snippets and example calls, aligning them with revised method signatures. No underlying logic, control flow, or exported API declarations were modified. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SDK
participant API
User->>SDK: getComponent("component-key")
SDK->>API: GET /components/component-key
API-->>SDK: Component definition
SDK-->>User: Component definition
User->>SDK: configureComponent({ id: "component-key", ... })
SDK->>API: POST /components/configure with id
API-->>SDK: Configuration result
SDK-->>User: Configuration result
User->>SDK: runAction({ id: "action-key", ... })
SDK->>API: POST /actions/run with id
API-->>SDK: Action result
SDK-->>User: Action result
Suggested labels
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
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 (
|
WHY
Summary by CodeRabbit