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 have tried to replicate the issue with this demo https://plnkr.co/edit/icOhGsihhg5y4MWQ but I had no luck so far. Are you sure that your html is valid and you are closing your tags properly?
What I posted up top is similar, but a different reason as to why it double renders (still looking for the first one)
I think something might be happening where it fails to clean up the old HTML elements or they are overwritten when there are too many rerender attempts.
My router is simple:
route.riot
<route>
<template if="{ shouldShow() }">
<slot />
</template>
<script>
export default {
...,
shouldShow() {
if (currentRoute does not match this.path) {
return false;
}
return true;
}
}
</script>
</route>
and the thing that listens to a route change simply re-renders the component using routeComponent.update({ show:true })
... anyway, that's just context to explain that, something is going on that it's not cleaning up old HTML and rendering next to it.
Also with the code provided I am not able to reproduce the issue https://plnkr.co/edit/3wWRvhDsDy5MWrXR. Without a reproducible example it's really hard for me to help you out. I will keep this issue open in case someone else could come out with a better idea
Help us to manage our issues by answering the following:
Sometimes, randomly, a component will double the elements inside of it.
No, but I have screenshots of the issue
Latest chrome
Riot 7
The text was updated successfully, but these errors were encountered: