Skip to content
TypeWire

@tahanabavi/typefetch-react

v1.1.0

React adapter for the TypeFetch query engine — useQuery, useMutation, TypeFetchProvider.

API

Export
TypeFetchProviderPuts one QueryClient in scope.
useQueryClientThe client from the nearest provider (throws if absent).
useQuerySubscribe to one endpoint + input.
useMutationA write plus its declared invalidation.
(re-exports)QueryClient, createQueryClient, and the core's types.

License

MIT © Taha Nabavi