Suggest to update the mounted code to include the following, which fixes the "this" reference inside Wails.Events...
mounted() {
let that = this
Wails.Events.On("filemodified", () => {
that.loadList();
});
Wails.Events.On("error", (message, number) => {
let result = number * 2;
that.setErrorMessage(${message}: ${result});
});
// Load the list at the start
that.loadList();
}
Suggest to update the mounted code to include the following, which fixes the "this" reference inside Wails.Events...
mounted() { let that = this Wails.Events.On("filemodified", () => { that.loadList(); }); Wails.Events.On("error", (message, number) => { let result = number * 2; that.setErrorMessage(
${message}: ${result}
); }); // Load the list at the start that.loadList(); }