Skip to content

Commit ab4108e

Browse files
committed
minor: README
1 parent 2f908d4 commit ab4108e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ There are multiple scenarios where URL-persisting makes sense:
8686

8787
Some insights:
8888

89+
- `queryRef()` uses a regular `ref()` under the hood, but adds the according loader and watcher to sync with the URL - therefore you can use your local variable exactly like a regular ref (e.g. setting like `variable.value = 'foobar'`)
8990
- The value is loaded on page load via **_useRoute()_**, which ensures that the value will already be loaded during **_SSR_** and no flickering will occur
9091
- If the provided value is an **_array_**, the type will be **_inferred by the first item_** of the value. Therefore mixed-type arrays are currently not supported (or will lead to problems)
9192

0 commit comments

Comments
 (0)