fix: no-render
This commit is contained in:
parent
63e64b0ed6
commit
354807c512
@ -11,10 +11,8 @@ export const HublReactivity = {
|
|||||||
this.subscribe();
|
this.subscribe();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dataSrc: {
|
},
|
||||||
type: String,
|
async fetchData(value) {
|
||||||
default: '',
|
|
||||||
callback: async function (value) {
|
|
||||||
this.resourceId = null;
|
this.resourceId = null;
|
||||||
if (this.nestedField) {
|
if (this.nestedField) {
|
||||||
const resource = store.get(value) || await store.getData(value, this.context);
|
const resource = store.get(value) || await store.getData(value, this.context);
|
||||||
@ -24,8 +22,6 @@ export const HublReactivity = {
|
|||||||
this.resourceId = value;
|
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