-
-
Notifications
You must be signed in to change notification settings - Fork 623
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
Refactor preview list fetch mechanism #4501
base: main
Are you sure you want to change the base?
Conversation
Moves the logic to fetch preview reading list to a dedicated repository instead of a helper function. This is a small portion for carrying out major refactoring tasks for T303935
) { | ||
|
||
suspend fun getPreviewReadingList(): ReadingList? { | ||
val encodedJson = prefs.receiveReadingListsData |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if use Prefs.receiveReadingListsData
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've converted it to a variable so as to support constructor injection (and easily write tests later with mocks). What do you think?
…nto preview_reading_list_refactor
Hi, would it be possible to change the |
Moved the logic to fetch preview reading list to a dedicated repository instead of a helper function. This is a small portion for carrying out major refactoring tasks for T303935