Skip to content

Commit

Permalink
fix(react): Refetch hook only actual query changes
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Oct 29, 2019
1 parent d06b44c commit 10b8988
Show file tree
Hide file tree
Showing 4 changed files with 2,849 additions and 878 deletions.
2 changes: 1 addition & 1 deletion packages/cubejs-react/dist/cubejs-react.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ var useCubeQuery = (function (query) {
subscribeRequest = null;
}
};
}, [query, options.cubejsApi, context]);
}, [JSON.stringify(query), options.cubejsApi, context]);
return {
isLoading: isLoading,
resultSet: resultSet,
Expand Down
2 changes: 1 addition & 1 deletion packages/cubejs-react/dist/cubejs-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ var useCubeQuery = (function (query) {
subscribeRequest = null;
}
};
}, [query, options.cubejsApi, context]);
}, [JSON.stringify(query), options.cubejsApi, context]);
return {
isLoading: isLoading,
resultSet: resultSet,
Expand Down
Loading

0 comments on commit 10b8988

Please sign in to comment.