feature/IO-3291-Tasks-Notifications: Final

This commit is contained in:
Dave Richer
2025-07-11 13:38:19 -04:00
parent 4dcfb382a9
commit e0b937474d
8 changed files with 54 additions and 16 deletions

View File

@@ -3,6 +3,8 @@ import { createContext, useContext } from "react";
const SocketContext = createContext(null);
const INITIAL_NOTIFICATIONS = 10;
const INITIAL_TASKS = 5;
const TASKS_CENTER_POLL_INTERVAL = 60 * 60 * 1000; // 1 hour in milliseconds
const useSocket = () => {
const context = useContext(SocketContext);
@@ -10,4 +12,4 @@ const useSocket = () => {
return context;
};
export { SocketContext, INITIAL_NOTIFICATIONS, useSocket };
export { SocketContext, INITIAL_NOTIFICATIONS, INITIAL_TASKS, TASKS_CENTER_POLL_INTERVAL, useSocket };