# Why \`refetch\` in "useLazyQuery" of Apollo-client, doesn't causing component re-rendering or update \`data\` in next js?

**URL:** <https://community.apollographql.com/t/why-refetch-in-uselazyquery-of-apollo-client-doesnt-causing-component-re-rendering-or-update-data-in-next-js/6819>\
**Category:** Client SDKs\
**Tags:** web, client\
**Created:** [October 8, 2023, 5:39am UTC](https://community.apollographql.com/t/why-refetch-in-uselazyquery-of-apollo-client-doesnt-causing-component-re-rendering-or-update-data-in-next-js/6819 "2023-10-08T05:39:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arijit](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@arijit](https://community.apollographql.com/u/arijit)\
**Post date:** [October 8, 2023, 5:39am UTC](https://community.apollographql.com/t/why-refetch-in-uselazyquery-of-apollo-client-doesnt-causing-component-re-rendering-or-update-data-in-next-js/6819/1 "2023-10-08T05:39:33Z")

</div>

can someone help me to solve this?  
[stack overflow question link](https://stackoverflow.com/questions/77252418/why-refetch-in-uselazyquery-of-apollo-client-doesnt-causing-component-rete)

TLDR: I want to update `data` and `loading` state after calling `refetch` from useLazQuery react hook.

---

<div class="post-metadata">

**Author:** ![lenz](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/lenz/32/4007_2.png) [@lenz](https://community.apollographql.com/u/lenz)\
**Post date:** [October 9, 2023, 9:16am UTC](https://community.apollographql.com/t/why-refetch-in-uselazyquery-of-apollo-client-doesnt-causing-component-re-rendering-or-update-data-in-next-js/6819/2 "2023-10-09T09:16:44Z")

</div>

I’m not 100% sure, but have you tried to set `notifyOnNetworkStatusChange` to `true`?

Also, did the data actually change or did it come back with the same data after the request?

---

<div class="post-metadata">

**Author:** ![Justin\_Gonzalez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/justin_gonzalez/32/5359_2.png) [@Justin\_Gonzalez](https://community.apollographql.com/u/Justin_Gonzalez)\
**Post date:** [February 6, 2025, 8:48pm UTC](https://community.apollographql.com/t/why-refetch-in-uselazyquery-of-apollo-client-doesnt-causing-component-re-rendering-or-update-data-in-next-js/6819/3 "2025-02-06T20:48:12Z")

</div>

Archived on February 6, 2025, 8:48pm UTC


