teableio/teable

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

Summary

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

export function useSSRRecord() {
  const { serverRecord } = useContext(RecordContext);
  return serverRecord;
}