fix(desktop): event reconnect gaps
This commit is contained in:
parent
b279b5022c
commit
8ec421a3be
2 changed files with 9 additions and 3 deletions
|
|
@ -24,6 +24,13 @@ type Data = {
|
|||
export const { use: useData, provider: DataProvider } = createSimpleContext({
|
||||
name: "Data",
|
||||
init: (props: { data: Data; directory: string }) => {
|
||||
return { store: props.data, directory: props.directory }
|
||||
return {
|
||||
get store() {
|
||||
return props.data
|
||||
},
|
||||
get directory() {
|
||||
return props.directory
|
||||
},
|
||||
}
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue