-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Description
Hi, I am having difficulty using more than one context in component. Say I have two contexts:
-InfoContext
-ErrorContext
I know what to do if I want to use only one of them, since its simply:
export default withAlert(InfoContext)(App)
or
export default withAlert(ErrorContext)(App)
But how can I use both of them in component? I tried to pass both contexts, like:
export default withAlert(InfoContext, ErrorContext)(App)
however I stucked at this point. Any sugestions?
Best regards,
Michał
Metadata
Metadata
Assignees
Labels
No labels