when a component has not data in descriptor but must reload the component for reactivity changes,
Bake.vue does not validate if component has data. Load should validate if component has data descriptor
reactions = reactionHandler.create(`${path}:bake`, {
reload(success) {
if (!success) {
return;
}
load();
},
show(success) {
visible.value = success;
}
});
async function load() {
loading.value = true;
try {
data.value = await dataFetcher.fetch({
data: descriptor.data,
contextData
});
} catch (err) {
if(err?.status !== 400) { throw err; }
rawError.value = err;
}
loading.value = false;
emit("loaded");
}
when a component has not data in descriptor but must reload the component for reactivity changes,
Bake.vuedoes not validate if component has data.Loadshould validate if component has data descriptor