marcuscalidus-svg-panel
marcuscalidus-svg-panel copied to clipboard
Loaded SVG data gets replicated thousand times ( as many as you typed in editor )
I've seen the SVG node disappear in editor after some time, only right side code editor working fine This leads to strange behaviors most of the time. Although I was able to prove that my code is working fine and not in a loop by using console.log in multiple points of the code, after some time, the loaded svg starts getting "replicated".
Thius is my svg data:
<svg id="snappy" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 300 40" ></svg>
The I load and insert the same SVG for each dataset ( multiple switches ).
after sometime of coding in the editor, the result of console.log for the #snappy svg node is this: