Describe the bug
I have a usecase when i need to update the gradient on the svg path multiple times.
Unfortunately every time I call the render method, it doesn't override the previous gradient node, but it creates new ones.
This becomes a problem after some time, when I end up 5k node elements, which is very bad for performance.
To Reproduce
Steps to reproduce the behavior:
- Add gradient to an svg path
- use .render method to render gradients
- do it multiple times
- check performance monitor in chrome and you'll see that the node count is going up
Expected behavior
I'd expect to have a cleanup process before the gradient renders