Skip to content
Discussion options

You must be logged in to vote

You need to make a wrapper dialog component that is not async and pass it the async component.
In the example the wrapper will:

  • render the component in component key in componentProps
  • use the key loader in componentProps for the #fallback slot in Suspense
  • pass all props from the componentProps (except component and loader) and onDialogHide, onDialogOK, and onDialogCancel to the final component

https://pdanpdan.github.io/quasar-play/?file=src%2FAsyncDialogWrapper.vue&preview=t&previewMode=preview&editor=codemirror#eNrFWYtuGzcW/RWuuljJgDWykl2gUO0k3tTbdvNwaqfYBarAoWYomfEMOSE5sl3X/77nkvOURu46aFEYsIfk5X3xPg7pu4HMcm3cOON59MlqNZgN7uaKsXm5YOeDGfMzNPe54JYbmpoPLp3L7WwyKVR+tYpinU3C6osn0fTv0XSSSOvK…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@metalsadman
Comment options

@hognevevle
Comment options

@metalsadman
Comment options

@hognevevle
Comment options

@metalsadman
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@pdanpdan
Comment options

pdanpdan Dec 7, 2023
Collaborator

Answer selected by metalsadman
@ddenev
Comment options

@pdanpdan
Comment options

pdanpdan Dec 7, 2023
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants