function subscribeTable<TSourceValue>(source): object;function subscribeTable<TSourceValue>(source): object;Defined in: packages/svelte-table/src/subscribe.ts:34
Creates a fine-grained Svelte subscription to a TanStack Store source.
Pass a table atom or store and optionally project it with a selector. The returned selector store exposes .current, making it useful for reading focused table state outside the broad createTable selector.
TSourceValue
SubscribeSource<TSourceValue>
object
readonly current: NoInfer<TSourceValue>;readonly current: NoInfer<TSourceValue>;<script lang="ts">
const selected = subscribeTable(
table.atoms.rowSelection,
(rowSelection) => rowSelection[row.id],
)
</script>
<input type="checkbox" checked={!!selected.current} /><script lang="ts">
const selected = subscribeTable(
table.atoms.rowSelection,
(rowSelection) => rowSelection[row.id],
)
</script>
<input type="checkbox" checked={!!selected.current} />function subscribeTable<TSourceValue, TSelected>(source, selector): object;function subscribeTable<TSourceValue, TSelected>(source, selector): object;Defined in: packages/svelte-table/src/subscribe.ts:37
Creates a fine-grained Svelte subscription to a TanStack Store source.
Pass a table atom or store and optionally project it with a selector. The returned selector store exposes .current, making it useful for reading focused table state outside the broad createTable selector.
TSourceValue
TSelected
SubscribeSource<TSourceValue>
(state) => TSelected
object
readonly current: TSelected;readonly current: TSelected;<script lang="ts">
const selected = subscribeTable(
table.atoms.rowSelection,
(rowSelection) => rowSelection[row.id],
)
</script>
<input type="checkbox" checked={!!selected.current} /><script lang="ts">
const selected = subscribeTable(
table.atoms.rowSelection,
(rowSelection) => rowSelection[row.id],
)
</script>
<input type="checkbox" checked={!!selected.current} />