Skip to content

Commit 7d0f9c1

Browse files
committed
[svelte] MaybeGetter
1 parent 5d2e235 commit 7d0f9c1

File tree

6 files changed

+290
-281
lines changed

6 files changed

+290
-281
lines changed

site/guides/02_building_uis/6_building_uis_with_svelte.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ There are also hooks for the higher-level TinyBase objects: `useMetric`,
6565
## Reactive Parameters With R
6666

6767
All hook parameters accept either a plain value or a reactive getter function.
68-
This is the `R<T>` type: `T | (() => T)`.
68+
This is the `MaybeGetter<T>` type: `T | (() => T)`.
6969

7070
Passing a getter function that reads a `$state` variable makes the hook
7171
reactively track which data it fetches. In this example, `rowId` is a prop and

src/@types/ui-svelte/docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* re-render when data changes.
1010
*
1111
* Hook parameters accept either plain values or reactive getter functions
12-
* (`R<T> = T | (() => T)`), so passing `() => tableId` from a `let`-bound
12+
* (`MaybeGetter<T> = T | (() => T)`), so passing `() => tableId` from a `let`-bound
1313
* Svelte prop makes the hook re-execute whenever the prop changes.
1414
*
1515
* The components in this module provide a further abstraction over those hooks

0 commit comments

Comments
 (0)