@cubejs-client/react 0.31.14 → 0.31.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-client/react",
3
- "version": "0.31.14",
3
+ "version": "0.31.30",
4
4
  "author": "Cube Dev, Inc.",
5
5
  "license": "MIT",
6
6
  "engines": {},
@@ -24,9 +24,9 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.1.2",
27
- "@cubejs-client/core": "^0.31.13",
27
+ "@cubejs-client/core": "^0.31.30",
28
28
  "core-js": "^3.6.5",
29
- "ramda": "^0.27.0"
29
+ "ramda": "^0.27.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/ramda": "^0.27.40",
@@ -42,5 +42,5 @@
42
42
  "peerDependencies": {
43
43
  "react": ">=16.10.2"
44
44
  },
45
- "gitHead": "17a6ebd5c630f8cd74b1436fa8cef7d2e633cbaa"
45
+ "gitHead": "5f63c029be3cc960ef16d872ed37b4a42f847693"
46
46
  }
@@ -134,6 +134,7 @@ export default class QueryBuilder extends React.Component {
134
134
 
135
135
  async componentDidUpdate(prevProps) {
136
136
  const { schemaVersion, onSchemaChange } = this.props;
137
+ const { meta } = this.state;
137
138
 
138
139
  if (this.prevContext?.cubejsApi !== this.context?.cubejsApi) {
139
140
  this.prevContext = this.context;
@@ -142,7 +143,8 @@ export default class QueryBuilder extends React.Component {
142
143
 
143
144
  if (prevProps.schemaVersion !== schemaVersion) {
144
145
  try {
145
- if (typeof onSchemaChange === 'function') {
146
+ const newMeta = await this.cubejsApi().meta();
147
+ if (!equals(newMeta, meta) && typeof onSchemaChange === 'function') {
146
148
  onSchemaChange({
147
149
  schemaVersion,
148
150
  refresh: async () => {