-
Notifications
You must be signed in to change notification settings - Fork 274
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
[Task] Room preview should try to update the local data #4729
Comments
It's a nice idea, but how would that work?
|
My understanding was that we refresh the data anyway when the preview is opened. We just would not block opening the preview because of that. Just my 2c. |
I see 2 ways we could try to have this behaviour:
EDIT: actually, I just realised this is what Benji proposed above, only a bit more detailed 😅 . |
I was imagining some method like the one described in option (2) yeah; the return type you described would be at the FFI layer. At the SDK layer, this could return |
Currently, using the room preview api for room we already know, like those with
invited
orknocked
states, is waiting for the server to return, because we want to ensure the data is accurate.Could be nice to return the local data right away, but still try to fetch data from server, and save this updated data in the store.
The text was updated successfully, but these errors were encountered: