From af9516e860c634c1df06aacd00f6c375fd1adef4 Mon Sep 17 00:00:00 2001 From: Nate Goldman Date: Sun, 10 Feb 2019 13:39:49 -0800 Subject: [PATCH] add note about maintaining control of a component resolves #88 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b8a72af..d5656de 100644 --- a/README.md +++ b/README.md @@ -193,6 +193,8 @@ class Component extends Nanocomponent { } ``` +Please note that if you remove a component from the DOM, it will be unloaded, and when reinserted into the DOM, `createElement` will be fired again. If you want to maintain control of a component's rendering, it has to stay mounted! See [issue #88](https://github.com/choojs/nanocomponent/issues/88) for a more detailed discussion. + ### Nested components and component containers Components nest and can skip renders at intermediary levels. Components can