New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double rendering on some components #2981
Comments
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? |
@GianlucaGuarini I think I know why it's happening, I just can't replicate. The above is a different context under which the double renders are happening. Below is another specific scenario:
Given the following:
I get the double render issue. 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:
and the thing that listens to a route change simply re-renders the component using ... 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: