Skip to content

Commit

Permalink
add note about maintaining control of a component
Browse files Browse the repository at this point in the history
resolves #88
  • Loading branch information
ungoldman authored Feb 10, 2019
1 parent b5474db commit af9516e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af9516e

Please sign in to comment.