Skip to content

Commit 10b8988

Browse files
committed
fix(react): Refetch hook only actual query changes
1 parent d06b44c commit 10b8988

File tree

4 files changed

+2849
-878
lines changed

4 files changed

+2849
-878
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ var useCubeQuery = (function (query) {
869869
subscribeRequest = null;
870870
}
871871
};
872-
}, [query, options.cubejsApi, context]);
872+
}, [JSON.stringify(query), options.cubejsApi, context]);
873873
return {
874874
isLoading: isLoading,
875875
resultSet: resultSet,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ var useCubeQuery = (function (query) {
876876
subscribeRequest = null;
877877
}
878878
};
879-
}, [query, options.cubejsApi, context]);
879+
}, [JSON.stringify(query), options.cubejsApi, context]);
880880
return {
881881
isLoading: isLoading,
882882
resultSet: resultSet,

0 commit comments

Comments
 (0)