mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-01 23:43:31 +00:00
refactor(tui): flatten state storage path
This commit is contained in:
parent
8f1e3ff75c
commit
6aa250ee5d
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue