refactor(tui): flatten state storage path

This commit is contained in:
Dax Raad 2026-07-29 12:39:21 -04:00
commit 6aa250ee5d

View file

@ -82,7 +82,7 @@ function createStorage(root: string, channel: string) {
const Context = createContext<Storage>() const Context = createContext<Storage>()
export function StorageProvider(props: ParentProps) { 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) onCleanup(result.close)
return <Context.Provider value={result.storage}>{props.children}</Context.Provider> return <Context.Provider value={result.storage}>{props.children}</Context.Provider>
} }