Display explicit error for one remaining react-query (advanced query)

This is a follow up to #4434. I've now confirmed that all uses of
react/react-query benefit from an explicit exception as they will now
see an explicit error instead of 0 results which is confusing for the
user and harder for us to debug
This commit is contained in:
Gabriel Horner
2022-03-08 17:16:34 -05:00
committed by Tienson Qin
parent 2286ef71bc
commit d955918525
4 changed files with 15 additions and 24 deletions

View File

@@ -588,8 +588,7 @@ Some bindings in this fn:
(react/react-query repo
{:query query
:query-string query-string
:rules rules
:throw-exception true}
:rules rules}
{:use-cache? false
:transform-fn transform-fn})
(catch ExceptionInfo e
@@ -609,8 +608,7 @@ Some bindings in this fn:
(merge
query-m
{:query query
:rules rules
:throw-exception true})
:rules rules})
(merge
query-opts
(when sort-by