Skip to content

Commit

Permalink
chore: destructure style options to prevent reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneburdet committed Nov 8, 2023
1 parent b1b4522 commit 4656101
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/visualizations/src/components/MapPoi/Map.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
export let data: Async<PoiMapData>;
export let options: PoiMapOptions;
$: style = getMapStyle(options.style);
$: ({ style: styleOptions} = options);
$: style = getMapStyle(styleOptions);
$: sources = getMapSources(data.value?.sources);
$: layers = getMapLayers(data.value?.layers);
$: popupsConfiguration = getPopupsConfiguration(data.value?.layers);
Expand Down Expand Up @@ -45,7 +45,7 @@
</script>

<div>
{#key options.style}
{#key style}
<MapRender
{style}
{sources}
Expand Down

0 comments on commit 4656101

Please sign in to comment.