SchemaClientProvider
Provider for schema client Includes its own QueryClientProvider for SSR compatibility Also includes CreateModalProvider for relation creation modals
Provider for schema client Includes its own QueryClientProvider for SSR compatibility Also includes CreateModalProvider for relation creation modals
Signature
({ config, queryClient: externalQueryClient, children, renderIcon, ModalStack, renderModalContent, placeholder, translations, renderFileViewer, }: SchemaClientProviderProps): ElementExamples
```tsx
import { SchemaClientProvider } from "@stndrds/react";
function App() {
return (
<SchemaClientProvider
config={{
baseUrl: "https://api.example.com",
tenantId: "tenant-123",
}}
renderIcon={(name) => <Icon name={name} />}
>
<YourApp />
</SchemaClientProvider>
);
}CreateModalProvider
Provider for managing the create modal stack Handles automatic object resolution and cache invalidation
useBulkDeleteRecords
Delete multiple records at once (soft delete — moves them to the trash). The collection stamp is the single optimistic mechanism: `deletedAt` is stamped on every targeted entity synchronously in `onMutate`. On partial failure only the failed ids are reverted (`deletedAt: null`); on full error every stamp is reverted. The archived/grid RQ caches refresh by invalidation on success — no cache surgery, no RQ snapshots.