When using the Map component with custom layers within it, the higher order contexts from the App root are not available.
A very basic example in this codesandbox: https://codesandbox.io/p/sandbox/l3fh86?file=%2Fsrc%2FApp.js%3A11%2C61
The example uses the ThemeProvider from material-ui with a custom theme, I would expect that useTheme in the custom FeatureLayer would have the custom theme, but it just has the default values.
This would be true of other Providers as well, like redux store, etc.
When using the Map component with custom layers within it, the higher order contexts from the App root are not available.
A very basic example in this codesandbox: https://codesandbox.io/p/sandbox/l3fh86?file=%2Fsrc%2FApp.js%3A11%2C61
The example uses the ThemeProvider from material-ui with a custom theme, I would expect that
useThemein the custom FeatureLayer would have the custom theme, but it just has the default values.This would be true of other Providers as well, like redux store, etc.