Bug: double/multiple unnecessary re-renders vgg-multiline
and vgg-area
marks
#69
Labels
bug
Something isn't working
vgg-multiline
and vgg-area
marks
#69
To reproduce:
console.log
to the top of therenderSVG
function in thePath.js
mixinAreas.vue
sandbox example and notice how theconsole.log
shows up 6 times, rather than the expected 3 times.I have already logged everything in the
Path.js
mixin I could think of, but I don't see any changes, so it is unclear why the re-rendering is happening.I initially thought the problem was the
updateBranch
function, used in thetransformation
watcher, inSection.vue
being called unnecessarily- I noticed it was called while thethis.transformation
it was watching didn't even change. So I tried to solve this by wrapping the update code inif (JSON.stringify(newVal) !== JSON.stringify(oldVal)) { .. }
to stop it from being triggered, which worked, but which still didn't solve the re-render bug. So it might have something to do with the things that are being watched inthis.transformation
in theSection
, but I have logged all of them and I am not able to find any changes. Maybe there could be some really deep changes like inside of the$$dataInterface
, but the watcher onthis.transformation
is not a deep watcher anyway, so I don't get why that would trigger updates. Also, in theAreas.vue
example, there should be no changes to the$$dataInterface
after the areas are rendered, so that wouldn't make sense either.The text was updated successfully, but these errors were encountered: