Skip to content

Commit d864ba3

Browse files
lirantaldanielroe
authored andcommitted
docs: clarify xrsp danger (#28053)
1 parent 05143b8 commit d864ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/1.getting-started/7.state-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Read more about `useState` composable.
2424

2525
::warning
2626
Never define `const state = ref()` outside of `<script setup>` or `setup()` function.<br>
27-
Such state will be shared across all users visiting your website and can lead to memory leaks!
27+
For example, doing `export myState = ref({})` would result in state shared across requests on the server and can lead to memory leaks.
2828
::
2929

3030
::tip{icon="i-ph-check-circle-duotone"}

0 commit comments

Comments
 (0)