Closed RangerMauve closed 4 years ago
You are not reading any file so no update is fetched except for the initial one that loads the content feed
Ah, so the update event doesn't happen unless I read files? I guess I've misunderstood what the update event does. Is there no event to react to when files have changed remotely?
Oh cool. Thank you for the clarification. I guess the thing I really needed here was the watch
API. 😁
Hey, I was posting about this on discord before but I just verified it with a test repo.
It looks like the
update
event in hyperdrive isn't firing. My gut feeling was that it's got something to do with theappend
event not firing on the metadata feed on peers when there's new blocks that we didn't download, but I'm not sure.Here's a reproducible case for the issue: https://github.com/RangerMauve/hyperdrive-update-test
When I run this, I see a single
update
at the beginning, then a series ofwrote
events without correspondingupdate
events.Am I maybe misconfiguring something?