Skip to content

Is it possible to query remote in the watchOne only if local record is not found? #232

Closed Answered by frank06
andreystavitsky asked this question in Q&A
Discussion options

You must be logged in to vote

Override your adapter:

DataStateNotifier<Author?> watchOneNotifier() {
  // use findOne local to check and remote to fetch in the background if necessary
  // localAdapter.findOne(key); for sync API
  // call super.watchOneNotifier()
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andreystavitsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants