Skip to content

Commit

Permalink
Update vnodes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-claudia committed Sep 1, 2024
1 parent 9d9e0e7 commit 7b819f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/vnodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ When creating libraries that emit vnodes, you should use this module instead of

Vnodes are supposed to represent the state of the DOM at a certain point in time. Mithril.js's rendering engine assumes a reused vnode is unchanged, so modifying a vnode that was used in a previous render will result in undefined behavior.

It is possible to reuse vnodes in place to prevent a diff, but it's preferable to use the [`onbeforeupdate`](lifecycle.md#onbeforeupdate).
It is possible to reuse vnodes in place to prevent a diff, but it's preferable to use the [`onbeforeupdate`](lifecycle-methods.md#onbeforeupdate).

#### Avoid passing model data directly to components via attributes

Expand Down Expand Up @@ -174,4 +174,4 @@ var BetterListComponent = {
}))
}
}
```
```

0 comments on commit 7b819f3

Please sign in to comment.