-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Expose real time dispatch changes function
When in a React environment, we use the RealTimeQueries component to subscribe to a doctype changes and keep the internal store updated. To be able to do the same thing manually for non React environment, we expose the underlaying functions : dispatchCreate, dispatchCreate, dispatchDelete.
- Loading branch information
Showing
5 changed files
with
148 additions
and
20 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
export function dispatchCreate(client: CozyClient, doctype: import("./types").Doctype, couchDBDoc: import("./types").CouchDBDocument): void; | ||
export function dispatchUpdate(client: CozyClient, doctype: import("./types").Doctype, couchDBDoc: import("./types").CouchDBDocument): void; | ||
export function dispatchDelete(client: CozyClient, doctype: import("./types").Doctype, couchDBDoc: import("./types").CouchDBDocument): void; | ||
declare var _default: import("react").MemoExoticComponent<({ doctype }: { | ||
doctype: import("./types").Doctype; | ||
}) => null>; | ||
export default _default; | ||
import CozyClient from "./CozyClient"; |
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