You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Query("SELECT * FROM ${Post.TABLE_NAME} WHERE ID = :postId")
fungetPostById(postId:Int): Flow<Post>
fungetPostByIdUntilChanged(id:Int) = getPostById(id).distinctUntilChanged()
Should we not use
distinctUntilChanged()
in dao?.cause if we update a unrelated row the query also emits data with the same result again. https://medium.com/androiddevelopers/room-flow-273acffe5b57
Originally posted by @raghunandankavi2010 in #61
The text was updated successfully, but these errors were encountered: