-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Utilise Realtime updates from Firebase storage
Is your feature request related to a problem? Please describe.
In order for users to view accurate data (e.g. available chats), when a user performs an action it should be immediately reflected to all other users. This has the benefit of users seeing new requests and updates to chats in real time (without having to refresh) and users always interacting with data that is up to date.
This feature can be implemented by utilising firebase’s realtime updates.
Describe the solution you'd like
Perhaps starting with the profile page, we can initialise and add the Firebase client to the frontend.
Rather than running through the current Apollo server, queries and mutations relating to the profile page will directly go through the Firebase client in the component. This will enable the benefit of realtime updates.
Using Firestore Lite might be also the best option (do not benefit from offline persistence but smaller bundle size).