fix: no-render
This commit is contained in:
parent
63e64b0ed6
commit
354807c512
@ -11,21 +11,17 @@ export const HublReactivity = {
|
|||||||
this.subscribe();
|
this.subscribe();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dataSrc: {
|
},
|
||||||
type: String,
|
async fetchData(value) {
|
||||||
default: '',
|
this.resourceId = null;
|
||||||
callback: async function (value) {
|
if (this.nestedField) {
|
||||||
this.resourceId = null;
|
const resource = store.get(value) || await store.getData(value, this.context);
|
||||||
if (this.nestedField) {
|
const nestedResource = await resource[this.nestedField]
|
||||||
const resource = store.get(value) || await store.getData(value, this.context);
|
this.resourceId = nestedResource ? nestedResource['@id'] : null;
|
||||||
const nestedResource = await resource[this.nestedField]
|
} else {
|
||||||
this.resourceId = nestedResource ? nestedResource['@id'] : null;
|
this.resourceId = value;
|
||||||
} else {
|
}
|
||||||
this.resourceId = value;
|
this.subscribe();
|
||||||
}
|
|
||||||
this.subscribe();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
subscribe() {
|
subscribe() {
|
||||||
if (this.resourceId && this.targetSrc) {
|
if (this.resourceId && this.targetSrc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user