Skip to content

Cache channel list and messages data on web (Next, React) and desktop applications (Electron) like Get Stream React Native and Flutter mobile app caching feature #2173

Open
@Gantushig97

Description

@Gantushig97

Motivation
I am working on a caching feature with the Get-Stream React/Next and Electron project. The app is built with Next with typescript and bundled with Electron. The final product will be a desktop and web app. I want to cache the channel list data, and their messages data and save them to some sort of local storage. (In my opinion web local storage would be too small)

Even though I want to use one solution for both of the platforms I mentioned, I am guessing that it would be futile since the platforms are so different.

(Our team's developers tried to cache the channel's data to the web's local storage and failed. )

The company I am currently working on has already made a mobile app with Flutter and Get-Stream. The Get-Stream Flutter and React-Native SDK have a caching feature that stores channel list data and messages. But the React SDK doesn't. I am hoping that the Get-Stream team could help me by creating a caching feature like the mobile SDK's.

Proposed solution
I want the Get-Stream team to implement a feature that caches all the necessary data in a web or desktop app. I don't have a particular solution yet, but I think it's possible to do it with local storage.

Acceptance Criteria
The caching solution should work on both React and Electron (web and web-based desktop apps). The solution should be integrated with the SDK's. If it's not possible at the moment (or I am wrong), please suggest a different method or a way to implement the feature. Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew capability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions