Created
March 7, 2018 17:13
-
-
Save mattwagl/85d5a1f2ed7397d9bb0e7d63cede3ebb to your computer and use it in GitHub Desktop.
A wolkenkit client that reads and observes a read model.
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
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