Skip to content
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

Error handling: Duplicated components after an error is thrown in a view #2645

Open
raykyri opened this issue Dec 15, 2020 · 3 comments
Open
Assignees
Labels
Area: Core For anything dealing with Mithril core itself Type: Bug For bugs and any other unexpected breakage

Comments

@raykyri
Copy link

raykyri commented Dec 15, 2020

This is somewhat a duplicate of #2273, but I also haven't seen it mentioned in the thread or anywhere else (or maybe I missed it):

When an error is thrown in a view in Mithril, the diffing engine will often get confused and start rendering multiple copies of the same component to the page.

This seems unexpected, and I haven't seen it mentioned anywhere else. Am I doing something wrong?

@raykyri raykyri added the Type: Bug For bugs and any other unexpected breakage label Dec 15, 2020
@osban
Copy link
Contributor

osban commented Dec 15, 2020

@raykyri not sure why you'd get an error thrown in a view, but maybe you could post some simplified code (ideally in a flems, possibly reproducing the error)?

@ArthurClemens
Copy link
Contributor

It seems to me that the issue is that key is missing in the li items.

@dead-claudia dead-claudia moved this to Needs triage in Triage/bugs Sep 2, 2024
@dead-claudia dead-claudia added the Area: Core For anything dealing with Mithril core itself label Sep 2, 2024
@dead-claudia dead-claudia mentioned this issue Oct 13, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Core For anything dealing with Mithril core itself Type: Bug For bugs and any other unexpected breakage
Projects
Status: Needs triage
Development

No branches or pull requests

5 participants