-
Notifications
You must be signed in to change notification settings - Fork 19
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
fix: code examples in react docs #355
Conversation
WalkthroughThis pull request updates the import paths for authentication components and modifies the invocation of authentication functions within the React SDK documentation. The changes introduce arrow functions to wrap the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant B as Button
participant F as Function Handler
participant A as Authentication Core
U->>B: Click "Sign Up"
B->>F: Invoke arrow function with parameters
F->>A: Execute register(params)
A-->>F: Return response
U->>B: Click "Sign In"
B->>F: Invoke arrow function with parameters
F->>A: Execute login(params)
A-->>F: Return response
U->>B: Click "Sign Out"
B->>F: Invoke arrow function with parameters
F->>A: Execute logout(params)
A-->>F: Return response
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
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:
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 (2)
src/content/docs/developer-tools/sdks/frontend/react-sdk.mdx (2)
84-85
: Enhanced Auth Function Invocation with Arrow Functions
Wrapping theregister
andlogin
calls in arrow functions now allows for additional parameters, which makes the examples more flexible. Consider clarifying the placeholder/* params here */
to guide users on what parameters might be expected.
131-131
: Consistent Logout Function Invocation
The update that wraps thelogout
call in an arrow function is consistent with the changes made for login and register. Verify whether additional parameters are required for logout and ensure that this is documented if necessary.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/content/docs/developer-tools/sdks/frontend/react-sdk.mdx
(4 hunks)
🔇 Additional comments (2)
src/content/docs/developer-tools/sdks/frontend/react-sdk.mdx (2)
73-73
: Updated Import Paths for Auth Components
The import path forLoginLink
andRegisterLink
has been correctly updated to use the new/components
subdirectory, aligning with the revised module structure.
135-135
: Updated LogoutLink Import Path
The updated import forLogoutLink
from the/components
subdirectory is correct and consistent with the new module structure in the docs.
Deploying kinde-docs-previews with
|
Latest commit: |
c310653
|
Status: | ✅ Deploy successful! |
Preview URL: | https://9a671b78.kinde-docs-previews.pages.dev |
Branch Preview URL: | https://fix-react-docs.kinde-docs-previews.pages.dev |
Description
Fixes issue with some code examples in the react documentaton
Summary by CodeRabbit