refactor(tui): centralize location state
This commit is contained in:
parent
ff3442ce34
commit
94a23b8537
19 changed files with 174 additions and 246 deletions
|
|
@ -85,7 +85,7 @@ export function PluginProvider(props: ParentProps<{ packages: PackageResolver }>
|
|||
const context: Context = {
|
||||
options: item.options ?? {},
|
||||
get location() {
|
||||
return location()
|
||||
return location.current
|
||||
},
|
||||
client: client.api,
|
||||
data,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue