Browse Source

chore(gui-v2): cleanup scope disposal

pull/3211/head
braks 2 years ago
parent
commit
cf21b7e05e
  1. 5
      packages/nc-gui-v2/composables/useDialog/index.ts

5
packages/nc-gui-v2/composables/useDialog/index.ts

@ -43,10 +43,7 @@ export function useDialog(
)
/** When calling scope is disposed, destroy component */
tryOnScopeDispose(() => {
close()
stop()
})
tryOnScopeDispose(close)
/** destroy component, can be debounced */
function close(debounce = 0) {

Loading…
Cancel
Save