Add member change event handling for real-time updates

This commit introduces a new socket event for member changes, allowing real-time updates when members are created or updated. The backend now emits a 'member:changed' event upon successful member modifications, while the frontend listens for this event to refresh the member list in the DiaryView component. This enhances the interactivity and responsiveness of the application, ensuring users receive immediate feedback on member changes.
This commit is contained in:
Torsten Schulz (local)
2025-11-13 17:32:29 +01:00
parent e27a4d960d
commit 156f4d6921
4 changed files with 63 additions and 3 deletions

View File

@@ -104,3 +104,8 @@ export const emitActivityChanged = (clubId, dateId) => {
emitToClub(clubId, 'activity:changed', { dateId });
};
// Event für Member-Änderungen (erstellen, aktualisieren)
export const emitMemberChanged = (clubId) => {
emitToClub(clubId, 'member:changed', { clubId });
};