Currently the stylechange storybook demo is broken, as the layer is not added to the map again after style is changing. This is because of the useSource hook being unaware of it's state within the maplibre instance. This PR will add a subscription to the "styledata" event to the useSource hook.
Currently the stylechange storybook demo is broken, as the layer is not added to the map again after style is changing. This is because of the useSource hook being unaware of it's state within the maplibre instance. This PR will add a subscription to the "styledata" event to the useSource hook.