awake-maroonA
Refine14mo ago
4 replies
awake-maroon

how to pass params to useCustom when queryoptions.enabled is false

const {refetch, isFetching} = useCustom({
        url: `/api/products/push/${id}`,
        method: 'get',
        queryOptions: {
            enabled: false
        }
    })

<Button variant={'text'} onClick={()=>refetch(id)}>推送</Button>

hi,when i click the button i want pass dynamic id to useCustom,how to make it? thanks
Was this page helpful?