Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

uselazyquery refetch from child

const { error, data, refetch } = useQuery(MY_QUERY)
<ChildCompoent refetch={refetch} />

//Inside Child Component
props.refetch()
 
PREVIOUS NEXT
Tagged: #uselazyquery #refetch #child
ADD COMMENT
Topic
Name
2+4 =