added save and load endpoints

This commit is contained in:
2025-11-17 10:19:44 +00:00
parent 5ce70ffa06
commit d2f030f221
10 changed files with 52 additions and 11 deletions

View File

@@ -20,6 +20,11 @@ const SoundContextProvider = ({ children }: SoundContextProviderProps) => {
operation: "VIEW",
path: "soundSettings",
});
await mutation.mutateAsync({
operation: "LOAD",
path: "",
value: null,
});
if (!result.result || typeof result.result !== "object") {
dispatch({ type: "UPDATE", payload: state });