nostr-commits on Nostr: satshoot : Offer card: Reworked init process and ticket sub: - ndkSvelte store ...
satshoot : Offer card: Reworked init process and ticket sub:
- ndkSvelte store guarantees that offer is always defined in the card component
- an Offer card needs to start ticket sub only once at init
- Ticket sub is groupable(1s delay) to NOT generate too many subs with multiple offer cards
- Since we only hide Offer cards on filtering with search function,
the grouped sub is not stopped by filtering offer cards anywhere
- limit was removed from the ticket sub options
https://github.com/Pleb5/satshoot/commit/11f1fab0f33a1f731c9291611b6f66efa1124295 Published at
2024-07-04 14:02:46Event JSON
{
"id": "000b970394ad0ef25060a2b63ca87c902260b8c360de4e27608a4bf38e7a6707",
"pubkey": "0000005f87f64341c212cc93d6c266c03ae752c02660e78a6da1424f7b05c470",
"created_at": 1720094566,
"kind": 1,
"tags": [
[
"nonce",
"26",
"10"
]
],
"content": "satshoot : Offer card: Reworked init process and ticket sub:\n- ndkSvelte store guarantees that offer is always defined in the card component\n- an Offer card needs to start ticket sub only once at init\n- Ticket sub is groupable(1s delay) to NOT generate too many subs with multiple offer cards\n- Since we only hide Offer cards on filtering with search function,\n\tthe grouped sub is not stopped by filtering offer cards anywhere\n- limit was removed from the ticket sub options\nhttps://github.com/Pleb5/satshoot/commit/11f1fab0f33a1f731c9291611b6f66efa1124295 ",
"sig": "e948d3ae489757771ec081ccfcbe0afeab7280529aa6900dc1ab4c290c9438a925ae587a54e7d5b4c9cb14afb84b571f1ef04bad2819d10f6d1a3d21b4fb39fe"
}