We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating this issue mostly to document, as this workaround has been used in the docs for a while.
There is a known Svelte 3/4 reactivity issue with $: as documented by LayerCake (see issue)
$:
It also sounds like this is fixed in Svelte 5
For Svelte 3/4 (and until LayerCake updates to Svelte 5 / runes), the workaround is to use separate <Canvas> instances, for example:
<Canvas>
<Chart geo={...}> <Canvas> <GeoPath geojson={states} class="stroke-surface-content" /> </Canvas> <Canvas> <GeoPath geojson={counties} class="stroke-surface-content/20" /> </Canvas> </Chart>
The text was updated successfully, but these errors were encountered:
It will be interesting to see what the best Svelte 5 pattern is for this.
Sorry, something went wrong.
No branches or pull requests
Creating this issue mostly to document, as this workaround has been used in the docs for a while.
There is a known Svelte 3/4 reactivity issue with
$:
as documented by LayerCake (see issue)It also sounds like this is fixed in Svelte 5
For Svelte 3/4 (and until LayerCake updates to Svelte 5 / runes), the workaround is to use separate
<Canvas>
instances, for example:The text was updated successfully, but these errors were encountered: