Browse Source

fix(nc-gui): dispose injection when provider scope is disposed

pull/3801/head
braks 2 years ago
parent
commit
716f761ee5
  1. 4
      packages/nc-gui/composables/useInjectionState/index.ts

4
packages/nc-gui/composables/useInjectionState/index.ts

@ -16,6 +16,10 @@ export function useInjectionState<Arguments extends any[], Return>(
providableState = providedState
tryOnScopeDispose(() => {
providableState = undefined
})
return providedState
}

Loading…
Cancel
Save