title: Redux RTK Query - Lazy Query
body: <p>I simply want to use RTK to run an API request as part of an onSuccess function and await the response. I was doing this in Axios no problem but I'm trying to replace my Axios calls with RTK and having trouble using the LazyQuery.</p>
  <p>I'm getting an exception</p>
  <blockquote>
  <p>useLazyQuery is not a function or its return value is not iterable</p>
  </blockquote>
  <p>My API:</p>
  <pre><code>const linkAPI = overweightRTK.injectEndpoints({
      tagTypes: ['Link'],
      endpoints: (builder) =&gt; ({
          createLink: builder.mutation({
              query: (body) =&gt; ({
                  url: `/links/`,
                  method: 'POST',
                  body,
                  invalidatesTags: ['Link']
              })
          })
      }),
      overrideExisting: false
  });
  
  export const { useCreateLinkMutation} = linkAPI;
  </code></pre>
  <p>My component:</p>
  <pre><code> const [trigger, result, lastPromiseInfo] = OverweightRTK.endpoints.createLink.useLazyQuery()
   const onSuccess = async (data) =&gt; {
          const createLinkRequest = { 
                 payload: data
          };
  
          trigger({ createLinkRequest }, { skip: !isSubscriber })
              .unwrap()
              .then(res =&gt; {
                  if (res.status === 200) {
                      setSuccessMessage('Success, your account linked');
                  }
              })
              .catch((error) =&gt; console.log(error));
      };
  </code></pre>