SessionIdSymbol
const
SessionIdSymbol: uniquesymbol
Defined in: packages/@livestore/common/dist/adapter-types.d.ts:167
Can be used in queries to refer to the current session id. Will be replaced with the actual session id at runtime
In client document table:
const uiState = State.SQLite.clientDocument({ name: 'ui_state', schema: Schema.Struct({ theme: Schema.Literal('dark', 'light', 'system'), user: Schema.String, showToolbar: Schema.Boolean, }), default: { value: defaultFrontendState, id: SessionIdSymbol },})
Or in a client document query:
const query$ = queryDb(tables.uiState.get(SessionIdSymbol))