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')
|
PollVote: toType('POLL_VOTE')
|
||||||
}
|
}
|
||||||
|
|
||||||
const ClientNotificationContext = createContext()
|
const ClientNotificationContext = createContext({ notifications: [], notify: () => {}, unnotify: () => {} })
|
||||||
|
|
||||||
export function ClientNotificationProvider ({ children }) {
|
export function ClientNotificationProvider ({ children }) {
|
||||||
const [notifications, setNotifications] = useState([])
|
const [notifications, setNotifications] = useState([])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user