Add fonts, autotable, autotable examples
This commit is contained in:
@@ -32,6 +32,7 @@ func Run(component func() *vdom.VNode) {
|
||||
next := component()
|
||||
patchChildren(root, one(prev), one(next))
|
||||
prev = next
|
||||
flushAfterRender() // refs are live now — measurement callbacks can run
|
||||
}
|
||||
rootRender()
|
||||
finish(root)
|
||||
@@ -49,7 +50,9 @@ func Hydrate(component func() *vdom.VNode) {
|
||||
next := component()
|
||||
patchChildren(root, one(prev), one(next))
|
||||
prev = next
|
||||
flushAfterRender()
|
||||
}
|
||||
flushAfterRender() // the adopted DOM is live; refs from hydration are usable
|
||||
finish(root)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user