Skip to content

Commit 36c79df

Browse files
committed
Add a warning about lack of devtool support
1 parent efc4e95 commit 36c79df

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/virtualview.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ Blocking the main thread can provide a better user experience by preventing flas
4141

4242
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!
4343

44+
:::warning
45+
Devtools currently does not support debugging main thread renders. This means if you are debugging code called from `onModeChange` that is rendered on main thread, your debugger may freeze.
46+
:::
47+
48+
4449
### Prerendering
4550

4651
`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”.

0 commit comments

Comments
 (0)