Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

useOptionalDbClient.md

14 lines279 Bytes

1---
2id: useOptionalDbClient
3title: useOptionalDbClient
4---
5​
6```ts
7function useOptionalDbClient(): DbClient | undefined;
8```
9​
10Defined in: [DbProvider.tsx:30](https://github.com/TanStack/db/blob/main/packages/react-db/src/DbProvider.tsx#L30)
11​
12## Returns
13​
14`DbClient` \| `undefined`