feat(events): real-time favoriting + live like count + post-purchase refresh #111
No reviewers
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp!111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/events-realtime"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Real-time / subscription bucket split out of #105.
useEventLikeskeeps one batched#asubscription over visible events' coordinates; a like (NIP-51 kind-10003 bookmark — the same action the heart performs) published by anyone is pushed live and the count ticks up for everyone. Verified end-to-end against a relay (count 2→3 with no reload). The heart also pops on a live increment.Caveat (inherent to counting replaceable bookmark lists): another user's un-like only reflects on next load — a list that drops the coord stops matching
#a, so the removal isn't pushed. Counts are correct on fresh load; the user's own un-like decrements instantly.🤖 Generated with Claude Code
373e52dd79tob6d1626951