 can anyone tell me , the post fetch can run onmount or onupdate ?
Activity
krishnasaga commentedon Mar 10, 2023
@bbaduser You can do it by calling the function
postfunction fromuseEffectAre asking about doing it by default by useFetch it self as we do it for
get?iamthesiz commentedon Jun 15, 2023
Yes,
const { data, loading } = useFetch('url', { method: 'post' }, [])TannerS commentedon Jan 7, 2025
Then how do you pass in the post body?