Skip to content

Instantly share code, notes, and snippets.

@mattwagl
Created March 7, 2018 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattwagl/85d5a1f2ed7397d9bb0e7d63cede3ebb to your computer and use it in GitHub Desktop.
Save mattwagl/85d5a1f2ed7397d9bb0e7d63cede3ebb to your computer and use it in GitHub Desktop.
A wolkenkit client that reads and observes a read model.
api.lists.posts.readAndObserve({
where: { boardId: state.activeBoardId }
}).
started((posts, cancel) => {
// render our ui
}).
updated((posts, cancel) => {
// re-render our ui
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment