teableio/teable

View on GitHub
packages/sdk/src/hooks/use-ssr-records.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { useContext } from 'react';
import { RecordContext } from '../context';

export function useSSRRecords() {
  const { serverRecords } = useContext(RecordContext);
  return serverRecords;
}