Is there a way to query if any smart queries in the current context are loading or have returned an error? #1242
-
I have a complex search component that has a number of dynamically created apollo smart queries generated in 'for loops' Some of these even have smart queries created inside another parent smart queries update hook as we need the results of one to query the next. The final calculation to render the search results, require all data from the smart queries first. This means we cannot use it would also be useful to have a global way of returning any smart query errors also. How might I go about doing this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Use apollo: {
$error (err) { ... }
} |
Beta Was this translation helpful? Give feedback.
Use
$apollo.loading
and$error
in theapollo
option