tweaks in docs
This commit is contained in:
parent
59dfbf0afc
commit
24b7150b3c
7 changed files with 62 additions and 15 deletions
|
|
@ -94,6 +94,8 @@ We can verify that both the enter and exit animations work by mounting the `Togg
|
|||
m.mount(document.body, Toggler)
|
||||
```
|
||||
|
||||
Note that the `onbeforeremove` hook only fires on the element that loses its `parentNode` when an elements gets detached from the DOM. This behavior is by design and exists to prevent a potential jarring user experience where every conceivable exit animation on the page would run on a route change. If your exit animation is not running, make sure to attach the `onbeforeremove` handler as high up the tree as it makes sense to ensure that your animation code is called.
|
||||
|
||||
---
|
||||
|
||||
### Performance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue