feat(modules): SSE settings.changed event broadcast #123
Reference in New Issue
Block a user
Delete Branch "feat-sse-settings-changed"
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?
Add
useSSEhook that connects to/api/eventswith automatic reconnect and exponential backoff. Onsettings.changedevents:The backend already publishes
settings.changedinHandleUpdateModuleSettings— this PR adds the frontend reactions.New file:
web/src/hooks/useSSE.tsModified:
web/src/hooks/useModules.ts(addedrefresh())Modified:
web/src/components/AppShell.tsx(SSE listener + toast)Closes #101