@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
22 lines (21 loc) • 844 B
TypeScript
export interface UseAppNotificationsActionsValues {
loadMore: () => void;
markNotificationAsRead: ({ notificationId }: {
notificationId: string;
}) => Promise<void>;
markAllNotificationsAsRead: () => Promise<void>;
resetAppNotifications: () => Promise<void>;
fetchMoreNotifications: ({ pageToFetch }: {
pageToFetch: number;
}) => Promise<void>;
updateUnreadCount: () => Promise<void>;
}
/**
* Hook that provides Redux-powered actions for app notifications
* Integrates RTK Query with Redux slice actions
*
* Note: Templates are applied at display time in useAppNotifications, not here.
* This ensures templates are always fresh and avoids race conditions.
*/
export declare function useAppNotificationsActions(): UseAppNotificationsActionsValues;
export default useAppNotificationsActions;