You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a similar issue to this and the root cause was that I was rendering these inside a loop and the key that I was putting on the parent element wasn't unique. Essentially I had several components that each had
and if I swapped the component's position then they would render each other's SVG instead of the one they were supposed to have.
Updating the key to be key={item.id + i} fixed the issue. If you're in a similar situation you may want to double check that your keys are globally unique otherwise the SvgRenderer can collide with the wrong state, causing its updates to lag.
On version
0.2.0
When using conditional data, svgXmlData only updates on second render, example:
If
condition
changes tofalse
at the first time it will still rendersvgTrue
The text was updated successfully, but these errors were encountered: