t4t5 / nostr-react

React Hooks for Nostr 🦤
MIT License
86 stars 14 forks source link

Is there a way to request relays to stream notes from newest to oldest rather than vice versa? #23

Open wds4 opened 1 year ago

wds4 commented 1 year ago

Currently, if I want to fetch all notes from a single user starting from the beginning of time, they are streamed from oldest to newest. This can be a problem if a user has been highly active for a long time and it's the newest notes that I am most interested in, because it might take a long time before the newest notes are received. One workaround is to fetch notes from a more restricted window; say, starting 1 week ago, rather than the beginning of time. The problem is that it's not obvious how big to make the window. So I wonder: is there a way to ask relays to stream notes from newest to oldest rather than oldest to newest? Thank you in advance!