fix serverside rendering of notifications

This commit is contained in:
keyan 2024-05-28 12:55:12 -05:00
parent 94cce9155d
commit 033270b6ae
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ export const Types = {
PollVote: toType('POLL_VOTE')
}
const ClientNotificationContext = createContext()
const ClientNotificationContext = createContext({ notifications: [], notify: () => {}, unnotify: () => {} })
export function ClientNotificationProvider ({ children }) {
const [notifications, setNotifications] = useState([])