Aller au contenu

primatch-frontend


primatch-frontend / hooks/useNotificationPreferences / useUpdateNotificationPreference

Function: useUpdateNotificationPreference()

useUpdateNotificationPreference(): UseMutationResult\<NotificationPreference, Error, { channels: { email: boolean; in_app: boolean; push: boolean; }; type: string; }, { previous: NotificationPreferences | undefined; }>

Defined in: src/hooks/useNotificationPreferences.ts:28

Hook React Query Mutation pour mettre à jour un type de notification.

Effectue une mise à jour optimiste locale avant confirmation serveur.

Returns

UseMutationResult\<NotificationPreference, Error, { channels: { email: boolean; in_app: boolean; push: boolean; }; type: string; }, { previous: NotificationPreferences | undefined; }>