1
0
mirror of https://github.com/flarum/core.git synced 2025-08-09 18:07:02 +02:00

Update SubtreeRetainer docblock

This commit is contained in:
Alexander Skvortsov
2020-08-15 19:57:41 -04:00
committed by Franz Liedke
parent 7ba8a7122b
commit 43bfaa7400

View File

@@ -11,8 +11,8 @@
* ); * );
* this.subtree.check(() => this.attrs.user.freshness); * this.subtree.check(() => this.attrs.user.freshness);
* *
* // view * // onbeforeupdate
* this.subtree.retain() || 'expensive expression' * return this.subtree.needsRebuild()
* *
* @see https://mithril.js.org/lifecycle-methods.html#onbeforeupdate * @see https://mithril.js.org/lifecycle-methods.html#onbeforeupdate
*/ */