fix serverside rendering of notifications
This commit is contained in:
parent
94cce9155d
commit
033270b6ae
|
@ -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([])
|
||||
|
|
Loading…
Reference in New Issue