docs: clarify xrsp danger (#28053)

This commit is contained in:
Liran Tal 2024-07-05 20:20:33 +03:00 committed by GitHub
parent b8b1fab8ea
commit b865cc511f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ Read more about `useState` composable.
::warning
Never define `const state = ref()` outside of `<script setup>` or `setup()` function.<br>
Such state will be shared across all users visiting your website and can lead to memory leaks!
For example, doing `export myState = ref({})` would result in state shared across requests on the server and can lead to memory leaks.
::
::tip{icon="i-ph-check-circle-duotone"}