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

Migrate UserViewsRepository to Kotlin flow #1586

Merged
merged 1 commit into from Apr 1, 2022

Conversation

nielsvanvelzen
Copy link
Member

LiveData is no longer the recommended way for live updates in UI. The kotlinx.coroutine flow API is the way to go. Fortunately we already have a bunch of flows in our code (SDK/some repositories) so the migration should be relatively easy.

Some resources:

This PR migrates the user views repository code. I'm probably redoing this one at some point to make it use a websocket listener (update the value when the server tells us the libraries have changed).

Changes

  • Migrate UserViewsRepository to Kotlin flow

Issues

@nielsvanvelzen nielsvanvelzen added this to In progress in v0.14.0 via automation Mar 29, 2022
v0.14.0 automation moved this from In progress to Reviewer approved Mar 31, 2022
@nielsvanvelzen nielsvanvelzen merged commit c66ebcc into jellyfin:master Apr 1, 2022
v0.14.0 automation moved this from Reviewer approved to Done Apr 1, 2022
@nielsvanvelzen nielsvanvelzen deleted the userviews-flow branch April 1, 2022 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v0.14.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants