<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic UseDQLQuery autoFetch property in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/263479#M1185</link>
    <description>&lt;P&gt;UseDQLQuery autoFetch set to false still runs query on react component load. Why?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Nov 2024 23:59:08 GMT</pubDate>
    <dc:creator>Jwrogers</dc:creator>
    <dc:date>2024-11-24T23:59:08Z</dc:date>
    <item>
      <title>UseDQLQuery autoFetch property</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/263479#M1185</link>
      <description>&lt;P&gt;UseDQLQuery autoFetch set to false still runs query on react component load. Why?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Nov 2024 23:59:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/263479#M1185</guid>
      <dc:creator>Jwrogers</dc:creator>
      <dc:date>2024-11-24T23:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: UseDQLQuery autoFetch property</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/263559#M1186</link>
      <description>&lt;P&gt;Hi Jwrogers,&lt;/P&gt;
&lt;P&gt;can you please give us the code snippet to fully understand the usage?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 11:15:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/263559#M1186</guid>
      <dc:creator>haris</dc:creator>
      <dc:date>2024-11-25T11:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: UseDQLQuery autoFetch property</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/263583#M1190</link>
      <description>&lt;P&gt;I build the fetch bizEvents DQL in the method getPipelineSummary(), but I don't want it to trigger until I call refetch().&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  useEffect(() =&amp;gt; {
    setDetails(details);
    refetch();
  }, []);

const { data, isLoading, refetch } = useDqlQuery(
    {
      body: { query: dbQueries.getPipelineSummary() },
    },
    { autoFetch: false, autoFetchOnUpdate: false },
  );
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 13:25:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/263583#M1190</guid>
      <dc:creator>Jwrogers</dc:creator>
      <dc:date>2024-11-25T13:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: UseDQLQuery autoFetch property</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/263598#M1192</link>
      <description>&lt;P&gt;Hi there&lt;BR /&gt;&lt;BR /&gt;When the component loads, it calls the `useEffect` hook. In this hook, you're calling refetch. If you dont' want the query to run when component loads, just remove that execution of refetch as following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; useEffect(() =&amp;gt; {
    setDetails(details);
  }, []);

const { data, isLoading, refetch } = useDqlQuery(
    {
      body: { query: dbQueries.getPipelineSummary() },
    },
    { autoFetch: false, autoFetchOnUpdate: false },
  );&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Nov 2024 16:09:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/263598#M1192</guid>
      <dc:creator>imsingh</dc:creator>
      <dc:date>2024-11-25T16:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: UseDQLQuery autoFetch property</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/267271#M1257</link>
      <description>&lt;P&gt;I removed refetch from being called anywhere in my component, but it's still being called when the component loads:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jwrogers_0-1736785232425.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25688iFC5D9B504525A30E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jwrogers_0-1736785232425.png" alt="Jwrogers_0-1736785232425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 16:20:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/267271#M1257</guid>
      <dc:creator>Jwrogers</dc:creator>
      <dc:date>2025-01-13T16:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: UseDQLQuery autoFetch property</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/267274#M1259</link>
      <description>&lt;P&gt;Hi there&lt;BR /&gt;&lt;BR /&gt;Do you have full code snippet that you can share or codesandbox?&amp;nbsp;&lt;BR /&gt;That'll help me solve your issue much better.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 16:44:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/UseDQLQuery-autoFetch-property/m-p/267274#M1259</guid>
      <dc:creator>imsingh</dc:creator>
      <dc:date>2025-01-13T16:44:32Z</dc:date>
    </item>
  </channel>
</rss>

