hzrd149 / nostrudel

A sandbox for exploring nostr
https://nostrudel.ninja/
MIT License
122 stars 34 forks source link

simple issue to fix #176

Open GretaFrank opened 3 months ago

GretaFrank commented 3 months ago

when i follow anybody their content is immediately inserted into my timeline shifting the timeline and losing the place where i was browsing ...

the simple solution is to NOT do this until the next manual refresh of the timeline so i can finish browsing my timeline in order ...

another solution would be to remember the place in timeline where i was browsing but the problem with that is the new content is not added all at once, but rather if there are maybe 20 notes that are added it will be 20 separate events added so inevitably the position in timeline will be lost ...

even if all 20 events are added at the same time the images in them will not all render immediately ...

most reliable solution would be to simply do nothing until next refresh ...

or maybe only add events BELOW the point where i was browsing so the timeline doesn't shift ...

hzrd149 commented 3 months ago

Unfortunately this isn't really easy to fix due to how noStrudel handles replaceable events under the hood. It tries to only keep a single version of the event in the background and all UI components subscribe to that source when they need it.

So when the following list is updated, its not very easy to tell a single UI component that it shouldn't use the latest event until a specific time :(