Offline Support (v5.0.0-beta) #1611
Replies: 13 comments 44 replies
-
Is there a reason to initialize this state as |
Beta Was this translation helpful? Give feedback.
-
Hey guys, Any issues that we come across, should they be added here, or to the issues tab and linked here? What do you prefer? |
Beta Was this translation helpful? Give feedback.
-
One issue is related to the location of the sqlite file on Android. currently, it's under the What this means is that android context won't know of it, and thus flipper requires manual setup.
for example, this android call will not work in order to setup Flipper |
Beta Was this translation helpful? Give feedback.
-
Found another issue. as you can see in the source, the result can be a empty array (in case there is no rows), but then the next line you expect result[0] to be defined. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@vishalnarkhede - it might be nice to have, but was curious what you think of this pseudo loading state. It's most noticeable at a cold start, when an entire channel list looks like this for a few frames I would say this is bad because it provides an inconsistent state (i.e: the channel has loaded, but the messages have not). My first reaction would be to continue displaying the skeleton until we can safely display the last message preview, instead of the "Nothing yet..." array, but wanted to see what you guys think would be best |
Beta Was this translation helpful? Give feedback.
-
One last thing for today. For channel deep linking, we intentionally do not load the entire channel list, so that we can make it super fast. Based on the
and we temporarily created a
At the end, we call
what do you think? |
Beta Was this translation helpful? Give feedback.
-
So, for cases where the filters applied return an empty channel list, it will wait for the channelList to get the same empty list from the server before displaying anything. This is a problem when in offline mode because it will fail the call, and the user will know as he was on that particular screen a few minutes ago and it worked (was empty). This is mainly due to the condition
and the fact that To solve this, the proposed steps are:
here is a potential patch
|
Beta Was this translation helpful? Give feedback.
-
This is all the feedback for now. The integration is complete and we will roll it out internally and to some of our beta users to see real life usage and get back to you guys. Thanks for the hard work and look forward to the polishes |
Beta Was this translation helpful? Give feedback.
-
Use the latest The patch to support this is simple
|
Beta Was this translation helpful? Give feedback.
-
@andreibarabas we have published https://github.com/GetStream/stream-chat-react-native/releases/tag/v5.0.0-beta.1 |
Beta Was this translation helpful? Give feedback.
-
Found one issue in the stable version, namely: if you have a filter with 0 results saved locally, then go in airplane mode and open the app, after the MAX_QUERY_CHANNELS_LIMIT is hit, the ui will error (although we did load from local database 0 channels). see recording issue.mp4The issue comes from this line, as the |
Beta Was this translation helpful? Give feedback.
-
I am still having issues with SQL Lite for the caching. I get referential integrity issues. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
Our team has rolled out offline support today, and we would like to gather your thoughts and feedback in a manageable manner. Currently we have released a beta version of v5 of the RN Chat SDK.
This discussion will contain any idea, piece of feedback, or advice with regards to offline support.
You can find more info in our migration guide from v4 to v5 about how to upgrade the SDK and how to opt-in for offline support.
P.S. Docs are a little raw at the moment, but we will improve them as we go. As a priority we wanted to release beta version of offline support and gather as much feedback as possible.
Beta Was this translation helpful? Give feedback.
All reactions