-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add Document.subscribe('status') section to JS SDK #145
Conversation
WalkthroughThe changes to the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration 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
Outside diff range, codebase verification and nitpick comments (1)
docs/js-sdk.mdx (1)
243-244
: Semantic refinement improves clarity, but add a comma.The updated description of the
Document.subscribe()
method is more precise and easier to understand. However, a comma is needed before 'and' in line 243.- A Document can be modified by changes generated remotely or locally in Yorkie. Whenever the Document is modified, change events are triggered and you can subscribe to these events using the `document.subscribe(callback)` method. + A Document can be modified by changes generated remotely or locally in Yorkie. Whenever the Document is modified, change events are triggered, and you can subscribe to these events using the `document.subscribe(callback)` method.Tools
LanguageTool
[uncategorized] ~243-~243: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...is modified, change events are triggered and you can subscribe to these events using...(COMMA_COMPOUND_SENTENCE)
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- docs/js-sdk.mdx (7 hunks)
Additional context used
LanguageTool
docs/js-sdk.mdx
[uncategorized] ~243-~243: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...is modified, change events are triggered and you can subscribe to these events using...(COMMA_COMPOUND_SENTENCE)
Additional comments not posted (8)
docs/js-sdk.mdx (8)
14-14
: Semantic refinement improves clarity.The updated description of the
Client
is more precise and easier to understand.
18-18
: Semantic refinement improves clarity.The updated description of creating a
Client
is more precise and easier to understand.
36-36
: Semantic refinement improves clarity.The updated description of creating a
Document
is more precise and easier to understand.
106-106
: Semantic refinement improves clarity.The updated description of getting the presence of clients is more precise and easier to understand.
238-239
: Semantic refinement improves clarity.The updated description of subscribing to document events is more precise and easier to understand.
326-327
: Semantic refinement improves clarity.The updated description of the
Document.subscribe('sync')
method is more precise and easier to understand.
341-364
: New section provides clear documentation forDocument.subscribe('status')
.The new section clearly explains how to use the
Document.subscribe('status')
method and its possible event values. It includes examples and a warning about handling browser closure or navigation scenarios.
502-502
: Semantic refinement improves clarity.The updated description of using type variables in TypeScript is more precise and easier to understand.
What this PR does / why we need it?
Add Document.subscribe('status') section to JS SDK
Any background context you want to provide?
What are the relevant tickets?
Fixes #
Checklist
Summary by CodeRabbit
Client
andDocument
.