Skip to content

Commit 805d5b1

Browse files
committed
fix: useCubeQuery doesn't reset error and resultSet on query change
1 parent a49be62 commit 805d5b1

File tree

5 files changed

+876
-2838
lines changed

5 files changed

+876
-2838
lines changed

packages/cubejs-react/dist/cubejs-react.esm.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,8 @@ var useCubeQuery = (function (query) {
786786
}
787787

788788
if (!equals(currentQuery, query)) {
789+
setResultSet(null);
790+
setError(null);
789791
setCurrentQuery(query);
790792
}
791793

packages/cubejs-react/dist/cubejs-react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,8 @@ var useCubeQuery = (function (query) {
793793
}
794794

795795
if (!ramda.equals(currentQuery, query)) {
796+
setResultSet(null);
797+
setError(null);
796798
setCurrentQuery(query);
797799
}
798800

0 commit comments

Comments
 (0)