mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
Merge pull request #3317 from Namaneo/fixes
Fix: UI settings not woking after switching pages back and forth
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useLocalStorage } from "@vueuse/core";
|
||||
import type { RemovableRef } from "@vueuse/core";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { watch, ref } from "vue";
|
||||
import { effectScope, watch, ref } from "vue";
|
||||
import type { UserSchema } from "@/__generated__";
|
||||
import userApi from "@/services/api/user";
|
||||
import storeAuth from "@/stores/auth";
|
||||
@@ -173,7 +173,7 @@ function createUISettings() {
|
||||
export function useUISettings() {
|
||||
// Return singleton instance
|
||||
if (!uiSettingsInstance) {
|
||||
uiSettingsInstance = createUISettings();
|
||||
uiSettingsInstance = effectScope(true).run(createUISettings)!;
|
||||
}
|
||||
return uiSettingsInstance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user