0.0.2 • Published 1 year ago
@8thday/nhost-js-utils v0.0.2
useNhostFunction
usage (works like apollo hooks, without fancy caching):
const { data, error, loading, refetch } = useNhostFunction<GenericReturnType>('path/to/func', { some: 'payload' })
useNhostFunction
usage (works like apollo hooks, without fancy caching):
const { data, error, loading, refetch } = useNhostFunction<GenericReturnType>('path/to/func', { some: 'payload' })