-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add taskQueue to handle each request one by one (#862)
When using JS SDK in environments like React, it is possible to assign Client to React Components. However, when Component Unmount is executed by moving location, resources like `yorkie.Client` need to be `deactivated` or `yorkie.Document` need to be `detached`. The challenge arises when it is not possible to await asynchronous requests while deactivating one by one due to some reasons. To address this issue, this commit introduces a task queue in `Client` to handle all requests one by one, ensuring proper deactivation or detachment.
- Loading branch information
1 parent
fe8ad49
commit 4f7dcce
Showing
2 changed files
with
188 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.