This commit is contained in:
ct
2025-07-17 03:28:02 +08:00
parent b195a9e7c3
commit 62cefe271e
9 changed files with 267 additions and 90 deletions

View File

@@ -75,6 +75,15 @@ const useMediaStore = create(
set({ currentCaption: text, hasInitialText: true });
},
// Clear initial state to allow fresh initialization
clearInitialState: () => {
set({
hasInitialMeme: false,
hasInitialBackground: false,
hasInitialText: false
});
},
// Clear selections
clearSelectedMeme: () => {
set({ selectedMeme: null });