-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
At the moment, if a consumer tries to listen for presence on a type that does not support presence, they'll get an error along the lines of: ``` TypeError: this._doc.type.transformPresence is not a function at LocalDocPresence._transformAgainstOp ``` This can be a bit confusing for consumers who assume their type supports presence. This change wraps that method in a function that will check if the type supports presence. If not, then we throw a more descriptive error, explaining that the type does not support presence.
- Loading branch information
1 parent
a837b00
commit 040e611
Showing
2 changed files
with
35 additions
and
2 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
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