fix: caching mechanism #65
Labels
No Label
bug
duplicate
easy
enhancement
help wanted
in progress
invalid
logic
next-week
priority enhancement
question
suggestion
ui
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: beep/frontend_flutter#65
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
The currently applied request level caching mechanism still has load times, when accessing pages like ConversationPage and ContactPage.
The mechanism needs to be capable of storing state of the last request and returning it instantly, even in the presence of an Internet connection.
So, a possible strategy for the caching, instead of returning the cache only on a network error, each cache-able api_provider returns a stream, which first returns the cache and then optionally returns the network request if available after which the stream is closed
Then when the calls are made, the streams should be handled appropriately, either with StreamBuilders or any other way.