Skip to content

Instantly share code, notes, and snippets.

@lancetw
Created June 23, 2020 09:27
Show Gist options
  • Save lancetw/9d1f6ddec217d4e752db250b5c3024c1 to your computer and use it in GitHub Desktop.
Save lancetw/9d1f6ddec217d4e752db250b5c3024c1 to your computer and use it in GitHub Desktop.
this.query = (filter: Filter) =>
Observable.from(
this.api.getData(filter).switchMap((res) => {
this.setData(res)
})
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment