Skip to content

Commit

Permalink
fix hot reloading not working everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
arckoor committed Nov 19, 2024
1 parent 4412e5d commit f7fc595
Show file tree
Hide file tree
Showing 13 changed files with 2,046 additions and 2,140 deletions.
2 changes: 1 addition & 1 deletion components/editor/LevelSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineComponent({
};
},
mounted() {
this.$watch("saves", () => this.updateLevel(), { deep: true });
this.$watch(this.saves.get, () => this.updateLevel(), { deep: true });
this.updateLevel();
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion components/editor/RobeSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineComponent({
};
},
mounted() {
this.$watch("saves", () => this.updateRobe(), { deep: true });
this.$watch(this.saves.get, () => this.updateRobe(), { deep: true });
this.updateRobe();
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion components/editor/ScarfSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default defineComponent({
};
},
mounted() {
this.$watch("saves", () => {
this.$watch(this.saves.get, () => {
if (!this.hasUpdated) {
this.initialize();
} else {
Expand Down
2 changes: 1 addition & 1 deletion components/editor/SymbolSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default defineComponent({
};
},
mounted() {
this.$watch("saves", () => {
this.$watch(this.saves.get, () => {
if (!this.superseded) {
this.updateSymbol();
} else {
Expand Down
2 changes: 1 addition & 1 deletion components/stats/GeneralDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const createData = () => {
};
createData();
watch(saves, () => createData(), { deep: true });
watch(saves.get, () => createData(), { deep: true });
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion components/stats/JourneyDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const createData = () => {
};
createData();
watch(saves, () => createData(), { deep: true });
watch(saves.get, () => createData(), { deep: true });
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion components/stats/MiscDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const createData = () => {
};
createData();
watch(saves, () => createData(), { deep: true });
watch(saves.get, () => createData(), { deep: true });
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion components/stats/MuralDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const createData = () => {
};
createData();
watch(saves, () => createData(), { deep: true });
watch(saves.get, () => createData(), { deep: true });
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion components/stats/SymbolDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const createData = () => {
};
createData();
watch(saves, () => createData(), { deep: true });
watch(saves.get, () => createData(), { deep: true });
</script>

<template>
Expand Down
3 changes: 2 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { fileURLToPath, URL } from "url";

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
typescript : {
typescript: {
typeCheck: "build",
strict: true
},
Expand Down Expand Up @@ -44,4 +44,5 @@ export default defineNuxtConfig({
devtools: {
enabled: true
},
compatibilityDate: "2024-11-19",
});
Loading

0 comments on commit f7fc595

Please sign in to comment.