React-google-maps: OverlayView loses other libraries context

Created on 9 Aug 2017  路  9Comments  路  Source: tomchentw/react-google-maps

I'm using react material-ui lib with react-google-maps.
When I'm trying to nest any material-ui component, eg. List, into OverlayView, I get this error:

Warning: Failed context type: The context muiTheme is marked as required in List, but its value is undefined.

In whole application, including other react-google-maps components muiTheme exist in the context.

Most helpful comment

Fixed in v8.0.0. Please try the new version.

https://tomchentw.github.io/react-google-maps/#!/OverlayView

All 9 comments

hrmm yeah this could def be an issue. I'll take a look.

Out of curiosity, have you tried to pass it down as props from the parent context?

Yes I tried and it is not working.

thanks @tomasz89nowak i'll look at it shortly.

Any upates here?

I was able to confirm this, seems like a known issue. There are also a number of big changes in play for the material-ui library(1.0 coming soon). I'm tempted to defer until they've released 1.0 so we can accommodate that release as opposed to trying to support 0.XX

Hey! I think it's not problem with material ui, but with OverlayView context.
Im using isomorphic-style-loader and it doesnt work with OverlayView..

Alright I'll mark this as an issue that we can dev against

screen shot 2017-09-06 at 13 48 37

Here is sceenshot of Chrome browser React dev tool - Overlayview CONTENT is rendered outside App

screen shot 2017-09-06 at 13 51 50
But OverlayView is in App

Fixed in v8.0.0. Please try the new version.

https://tomchentw.github.io/react-google-maps/#!/OverlayView

Was this page helpful?
0 / 5 - 0 ratings

Related issues

farhan687 picture farhan687  路  3Comments

0x1bitcrack3r picture 0x1bitcrack3r  路  3Comments

wayofthefuture picture wayofthefuture  路  3Comments

ShintaroNippon picture ShintaroNippon  路  3Comments

SyedSaifAli picture SyedSaifAli  路  3Comments