Open martinchristov opened 6 years ago
Hi there, I'm running into issues because of my portals using connected redux props. I need to somehow wrap the rendering of the portals with:
<Provider store={store}><ConnectedIntlProvider>{renderUniversalPortals()}
Perhaps introducing a second parameter to the appendUniversalPortals function like this:
const PortalWrapper = ({children}) => <Provider store={store}><ConnectedIntlProvider>{children}</ConnectedIntlProvider></Provider> appendUniversalPortals(html, PortalWrapper)
const PortalWrapper = ({children}) => <Provider store={store}><ConnectedIntlProvider>{children}</ConnectedIntlProvider></Provider>
appendUniversalPortals(html, PortalWrapper)
what are your thoughts ?
Hi there, I'm running into issues because of my portals using connected redux props. I need to somehow wrap the rendering of the portals with:
<Provider store={store}><ConnectedIntlProvider>{renderUniversalPortals()}
Perhaps introducing a second parameter to the appendUniversalPortals function like this:
const PortalWrapper = ({children}) => <Provider store={store}><ConnectedIntlProvider>{children}</ConnectedIntlProvider></Provider>
appendUniversalPortals(html, PortalWrapper)
what are your thoughts ?