Installing and Configuring RelayKit Hooks
Use this lightweight React hook package to integrate Relay into your custom interface. Start by installing the required packages:
If using typescript ensure that you’re on v5+. Refer to the package json for the latest version requirements for the peer dependencies.
The hooks require TanStack Query to be installed and configured. Refer to the Tanstack installation instructions. Once Tanstack is configured in your React application, that’s all you need to get started.
Each hook is configured separately to allow for as much flexibility as possible. All hooks come with a query function that can be used outside of a React context to fetch the data (useful when using SSR or in a context that doesn’t use React).
Installing and Configuring RelayKit Hooks
Use this lightweight React hook package to integrate Relay into your custom interface. Start by installing the required packages:
If using typescript ensure that you’re on v5+. Refer to the package json for the latest version requirements for the peer dependencies.
The hooks require TanStack Query to be installed and configured. Refer to the Tanstack installation instructions. Once Tanstack is configured in your React application, that’s all you need to get started.
Each hook is configured separately to allow for as much flexibility as possible. All hooks come with a query function that can be used outside of a React context to fetch the data (useful when using SSR or in a context that doesn’t use React).