@tanstack/react-optimistic
Version:
React hooks for optimistic updates
13 lines (10 loc) • 429 B
text/typescript
// Re-export all public APIs
export * from "./useCollection"
export * from "./useOptimisticMutation"
export * from "./useLiveQuery"
export * from "./electric"
// Re-export everything from @tanstack/optimistic
export * from "@tanstack/optimistic"
// Re-export some stuff explicitly to ensure the type & value is exported
export { Collection } from "@tanstack/optimistic"
export { createTransaction } from "@tanstack/optimistic"