diff --git a/docs/components.md b/docs/components.md index b6ee29e3..5427f3ce 100644 --- a/docs/components.md +++ b/docs/components.md @@ -130,6 +130,7 @@ m.module(document.body, MyApp) There are a few caveats to using modules as components: 1 - component views must return a virtual element. Returning an array, a string, a number, boolean, falsy value, etc will result in an error. This limitation exists in order to support the correctness of unloading semantics component identity. + 2 - components cannot change `m.redraw.strategy` from the controller constructor (but they can from event handlers). diff --git a/docs/mithril.module.md b/docs/mithril.module.md index a7a13e73..f11e1728 100644 --- a/docs/mithril.module.md +++ b/docs/mithril.module.md @@ -285,6 +285,7 @@ m.module(document.body, MyApp) There are a few caveats to using modules as components: 1 - component views must return a virtual element. Returning an array, a string, a number, boolean, falsy value, etc will result in an error. This limitation exists in order to support the correctness of unloading semantics component identity. + 2 - components cannot change `m.redraw.strategy` from the controller constructor (but they can from event handlers). ---