f5 / unovis

Modular data visualization framework for React, Angular, Svelte, Vue, and vanilla TypeScript or JavaScript
https://unovis.dev
Apache License 2.0
2.27k stars 44 forks source link

Multiple XY components and Svelte 5 #379

Open Magnus-Ignitic opened 6 months ago

Magnus-Ignitic commented 6 months ago

I know Svelte 5 is still in RC but interesting finding(?) nonetheless. Or Not. Multiple XY components in the XY container crashes my application at least:

<VisXYContainer
  {data}
  margin={{ left: 5, right: 5, top: 5, bottom: 5 }}
  height="100"
>
  <VisLine {x} {y} lineWidth={2} color="#80808080" />
  <!-- This line causes browser to freeze -->
  <!-- <VisLine {x} y={y1} lineWidth={3} color="#ff00ff" /> -->
</VisXYContainer>

Same code works in Svelte 4.

hewliyang commented 3 weeks ago

Any updates on Svelte 5 support? Seems that an example like this just causes an out of memory error on the browser

lee00678 commented 1 week ago

@hewliyang @Magnus-Ignitic, thanks for bringing this up. We are looking into this issue. Hopefully we can include a fix in our next release.

david-plugge commented 1 week ago

Just ran into this aswell, the browser just freezes. Looking forward for a solution and thank you for this awesome library!

xmlking commented 1 day ago

browser freeze with chunk-SXMMSZKG.js?v=7191c123:303 Uncaught (in promise) Error: effect_update_depth_exceeded error

image