We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3df84d9 commit de51159Copy full SHA for de51159
packages/data/src/sdk/sdk.service.ts
@@ -117,10 +117,10 @@ export class SdkService {
117
if (this.noApi(api)) {
118
return Promise.reject('getSchema: ' + this.noApi(api));
119
}
120
- if (!this.schemaRequests[model]) {
121
- this.schemaRequests[model] = api.getSchema(model);
+ if (!this.schemaRequests[model] || this.schemaRequests[model].api !== api) {
+ this.schemaRequests[model] = { request: api.getSchema(model), api };
122
123
- return this.schemaRequests[model];
+ return this.schemaRequests[model].request;
124
125
126
/** Returns the current account. Works for all apis */
0 commit comments