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

useOptionalDbClient.md

16 lines314 Bytes

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