Procházet zdrojové kódy

refactor(tui): flatten state storage path

Dax Raad před 3 týdny
rodič
revize
6aa250ee5d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      packages/tui/src/context/storage.tsx

+ 1 - 1
packages/tui/src/context/storage.tsx

@@ -82,7 +82,7 @@ function createStorage(root: string, channel: string) {
 const Context = createContext<Storage>()
 
 export function StorageProvider(props: ParentProps) {
-  const result = createStorage(path.join(useTuiPaths().state, "storage"), useTuiApp().channel)
+  const result = createStorage(useTuiPaths().state, useTuiApp().channel)
   onCleanup(result.close)
   return <Context.Provider value={result.storage}>{props.children}</Context.Provider>
 }