Beneath React Client Library
This folder contains the source code for the Beneath React library. Here are some useful links:
Installation
To install the library, run:
npm install beneath - react
Providing feedback
Beneath is just entering public beta, so there's bound to be some rough edges. Bugs, feature requests, suggestions – we'd love to hear about them. Click here to file an issue.
Type aliases
FetchMoreFunction
Defined in src/shared.ts:2
Type declaration
Parameters
Returns Promise < void >
FetchMoreOptions
FetchMoreOptions: { pageSize?: number }
Defined in src/shared.ts:1
Type declaration
Optional pageSize?: number
QueryWarehouseFunction
QueryWarehouseFunction: ( query: string ) => void
Defined in src/useWarehouse.ts:7
Record
Record<TRecord>: TRecord & { @meta: { key: string ; timestamp: number } }
Defined in node_modules/beneath/dist/types.d.ts:1
Type parameters
StreamQualifier
StreamQualifier: string | { instanceID: string } | { organization: string ; project: string ; stream: string }
Defined in node_modules/beneath/dist/types.d.ts:7
UseWarehouseOptions
UseWarehouseOptions: { pageSize?: number ; secret?: string }
Defined in src/useWarehouse.ts:8
Type declaration
Optional pageSize?: number
Optional secret?: string
UseWarehouseResult
Defined in src/useWarehouse.ts:9
Type parameters
Type declaration
Optional error?: Error
Optional job?: Job < TRecord >
loading: boolean
Optional records?: Record < TRecord > []
Functions
useRecords
Defined in src/useRecords.ts:81
Type parameters
Parameters
useWarehouse
Defined in src/useWarehouse.ts:22
Type parameters
Parameters
React hook that you can use to query streams, including paging through data and getting real-time updates over websockets.