-
I thought tw's v-dom has this feature, but in my plugins, I directly create new DOM element in the After reading need-for-speed thread in the talk forum, I start rethinking if I was doing wrong. Or maybe tw5 just doesn't have this comparison? Thus every DOM gets updated when a tiddler (even a draft) changes. Maybe I have to read the code to find out. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
TiddlyWiki doesn't use a virtual DOM. Instead, each widget is responsible for refreshing itself and any attached DOM nodes when there have been changes to the tiddler store. In other words, we refer to "reconciliation" as "refreshing". |
Beta Was this translation helpful? Give feedback.
-
@linonetwo you wrote
It would be interesting to see the context. As I wrote above, TW state should always be kept in tiddlers. That's the only way to know when to refresh. ... I think there is a high chance, that the code above is there for easy use of the |
Beta Was this translation helpful? Give feedback.
TiddlyWiki doesn't use a virtual DOM. Instead, each widget is responsible for refreshing itself and any attached DOM nodes when there have been changes to the tiddler store. In other words, we refer to "reconciliation" as "refreshing".