Preload main feed data on startup #750

Open
opened 2024-05-03 04:15:24 +12:00 by dtonon · 5 comments
dtonon commented 2024-05-03 04:15:24 +12:00 (Migrated from github.com)

When the user unlocks the private key or just skip the login, he faces an empty page with a (useless) "load more" button for some seconds:
image

Can we start fetching the data immediately when Gossip starts, at least if the user didn't select "Start in offline mode" in a previous session?

If that is not possibile, we can fallback with a better loading view

When the user unlocks the private key or just skip the login, he faces an empty page with a (useless) "load more" button for some seconds: ![image](https://github.com/mikedilger/gossip/assets/89577423/b3642ab6-624d-4442-91a5-ca0214d6c73b) Can we start fetching the data immediately when Gossip starts, at least if the user didn't select "Start in offline mode" in a previous session? If that is not possibile, we can fallback with a [better loading view](https://github.com/mikedilger/gossip/issues/749)
dtonon commented 2024-05-03 04:43:52 +12:00 (Migrated from github.com)

@mikedilger this needs your approval :)

/cc @bu5hm4nn

@mikedilger this needs your approval :) /cc @bu5hm4nn
mikedilger commented 2024-05-03 10:46:31 +12:00 (Migrated from github.com)

I don't think we should load the data immediately, I think the 'loading' screen @bu5hm4nn just did ( that you designed ) is sufficient.

We could load local database events, but it's complexity and complexity that makes gossip harder and harder to maintain.

I don't think we should load the data immediately, I think the 'loading' screen @bu5hm4nn just did ( that you designed ) is sufficient. We could load local database events, but it's complexity and complexity that makes gossip harder and harder to maintain.
bu5hm4nn commented 2024-05-03 10:47:40 +12:00 (Migrated from github.com)

Well we could load a local cache version of the feed and then update to the live later?

Well we could load a local cache version of the feed and then update to the live later?
dtonon commented 2024-05-03 17:46:17 +12:00 (Migrated from github.com)

@mikedilger

I don't think we should load the data immediately,

Is it for a specific reason? Just to understand your pov.

Well we could load a local cache version of the feed and then update to the live later?

Actually, if I access "offline" the feed is immediately available, so the db data is already used in this case. Showing it could be a solution, but you will have a refresh in some seconds and since the feed auto scrolls, you will loose the context. I would avoid that.

It's not a critical point of course, just a nice touch.

@mikedilger > I don't think we should load the data immediately, Is it for a specific reason? Just to understand your pov. > Well we could load a local cache version of the feed and then update to the live later? Actually, if I access "offline" the feed is immediately available, so the db data is already used in this case. Showing it could be a solution, but you will have a refresh in some seconds and since the feed auto scrolls, you will loose the context. I would avoid that. It's not a critical point of course, just a nice touch.
mikedilger commented 2024-05-09 13:18:51 +12:00 (Migrated from github.com)

I can't reproduce. If I start in offline mode I see all the local notes just fine. I don't see any useless empty feed.

I can't reproduce. If I start in offline mode I see all the local notes just fine. I don't see any useless empty feed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nostr/gossip#750
No description provided.