You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until here everything is fine, and refetch query works totally as expected,
$: if ($login) {
console.log($login.error, $login.loading, $login.data)
}
the problem is $login sends a query to the server when the component is mounting.
Am I missing something or this behavior is normal?
The text was updated successfully, but these errors were encountered:
mohesem
changed the title
Why $query sends a request to server on component mount ?
Why $query sends a request to server on component mount?
Jan 29, 2021
I think this is why we'd need lazy queries; dev said in this comment that they'd investigate in the future, but I agree that missing the lazy queries makes you have to code in circles to keep from sending lots of random queries from things like search forms.
I am trying to write a login form.
Until here everything is fine, and refetch query works totally as expected,
the problem is $login sends a query to the server when the component is mounting.
Am I missing something or this behavior is normal?
The text was updated successfully, but these errors were encountered: