An adaptation of Vulcan's flash message system, but using reactive state instead of React context
Updated withMessages to use reactive state
Added new useMessages hook
Added new useIntl hook
Separated FlashMessages component into its own file
Updated Flash component to use reactive state
Moved getProperties() from the Flash component to normalizeMessage() in withMessages
Added new Material UI implementation of the Flash component
Removed messages from the state of the App component, MessageContext from the component tree, and the methods UNSAFE_componentWillMount, componentWillUnmount, flash, and clear
Removed messages.js, which only defined MessageContext
Updated error.js to report the http status of network errors thrown by Apollo
I'll let you merge as well, sounds cool! My first attempt at Flash message with Apollo client side queries was such a disaster lol it's cool to see it progressing
withMessages
to use reactive stateuseMessages
hookuseIntl
hookFlashMessages
component into its own fileFlash
component to use reactive stategetProperties()
from the Flash component tonormalizeMessage()
in withMessagesFlash
componentmessages
from the state of theApp
component,MessageContext
from the component tree, and the methodsUNSAFE_componentWillMount
,componentWillUnmount
,flash
, andclear
messages.js
, which only definedMessageContext
error.js
to report the http status of network errors thrown by Apollo