Claude e9f6d5fc3a fix: use resolvedFilter in subscription ID to fix $contacts alias
The real bug: subscription ID was using the original filter (with "$contacts" string)
while the query used the resolved filter (with actual pubkeys). This caused the
subscription to not re-subscribe when contacts were loaded.

Flow before fix:
1. Component renders, contacts = []
2. resolvedFilter has empty authors (since $contacts resolves to [])
3. Subscription ID: req-{"authors":["$contacts"]} (never changes)
4. Query sent with empty authors → no results
5. Contact list loads, contacts populates
6. resolvedFilter recalculates with real pubkeys
7. BUT subscription ID unchanged, so no re-subscribe!
8. Query stuck with empty authors

Flow after fix:
1. Subscription ID now uses resolvedFilter
2. When contacts load and resolvedFilter changes, ID changes
3. Hook detects new ID and creates new subscription with actual contact pubkeys
4. Query works correctly

Also includes the contactPointer memoization from previous commit.
2025-12-22 22:15:26 +00:00
2025-12-18 15:46:02 +01:00
👶
2025-12-09 16:26:31 +01:00
2025-12-19 12:49:29 +01:00
2025-12-13 15:06:05 +01:00
2025-12-10 13:00:39 +01:00
2025-12-22 20:40:16 +00:00
2025-12-22 20:40:16 +00:00
👶
2025-12-09 16:26:31 +01:00
2025-12-20 14:25:40 +01:00
2025-12-15 22:19:28 +01:00
👶
2025-12-09 16:26:31 +01:00
👶
2025-12-09 16:26:31 +01:00
👶
2025-12-09 16:26:31 +01:00
👶
2025-12-09 16:26:31 +01:00
2025-12-21 22:39:07 +01:00
2025-12-14 16:50:16 +01:00
Description
No description provided
MIT 14 MiB
Languages
TypeScript 98.9%
CSS 0.8%
JavaScript 0.3%