MithrilJS / MithrilJS/mithril.js

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

Open
#2,645 4 comments 0 reactions 1 assignee View on GitHub

@dead-claudia is already working on this.

Since Dec 15, 2020.

Area: Core Type: Bug
Dominant language
JavaScript
Stars
14.5k
Forks
922
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.