Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The pagingSourceFactory from DB can lead wrong data display #202

Open
hoangtuan877 opened this issue Nov 5, 2021 · 0 comments
Open

The pagingSourceFactory from DB can lead wrong data display #202

hoangtuan877 opened this issue Nov 5, 2021 · 0 comments

Comments

@hoangtuan877
Copy link

In case you search for a key word then re-type and search again with another word included in your result list.
The LIKE query will bring that result to top of screen because it still in your DB. and it can show up in UI before new data come in.

// appending '%' so we can allow other characters to be before and after the query string
val dbQuery = "%${query.replace(' ', '%')}%"
val pagingSourceFactory = { database.reposDao().reposByName(dbQuery)}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant