Claude 16889a9e30 refactor: auto-generate subscription ID in useReqTimelineEnhanced
Remove the manual `id` parameter from useReqTimelineEnhanced and generate it
automatically from the filter, relays, and stream option. This prevents bugs
where the ID doesn't match the actual query parameters.

Benefits:
- Simpler API - one less parameter to pass
- Impossible to create ID/filter mismatches
- ID always perfectly reflects what's being queried
- More maintainable and less error-prone

The subscription ID is now generated as:
`req-${JSON.stringify(filters)}-${relays.join(",")}-${stream}`

This ensures the subscription re-triggers when any of these values change,
which is exactly when we want to re-subscribe.

Updated call site in ReqViewer.tsx to use the new API.
2025-12-22 22:24:39 +00:00
2025-12-18 15:46:02 +01:00
2025-12-19 12:49:29 +01:00
2025-12-13 15:06:05 +01:00
2025-12-22 20:40:16 +00:00
2025-12-22 20:40:16 +00:00
2025-12-20 14:25:40 +01:00
2025-12-15 22:19:28 +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%