Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/virtualview.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Blocking the main thread can provide a better user experience by preventing flas

However, blocking the main thread also comes with tradeoffs. If an update operation, such as mounting the children of a `VirtualView`, takes too long to finish, it can now drop frames. Dropping more than a couple frames can lead to a worse user experience by making the app feel sluggish and non-responsive. Dropping too many frames may cause the operating system to display a modal indicating the app is not responsive, or it may even terminate your app!

:::warning
DevTools currently does not support debugging JavaScript on the main thread. This means if you are debugging code called from `onModeChange` that is rendered on the main thread, your debugger may freeze.
Comment thread
lunaleaps marked this conversation as resolved.
Outdated
:::


### Prerendering

`VirtualView` enables you to benefit from main thread rendering while mitigating the disadvantages of dropped frames by rendering earlier before it is needed. This is called “prerendering”.
Expand Down