mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 15:45:00 +00:00
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:
committed by
Tienson Qin
parent
2286ef71bc
commit
d955918525
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user