You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
import{useModal}from'vue-final-modal'importSomeComponentfrom'components'const{ open, close }=useModal({component: SomeComponent,attrs: {...},})// even if someEvent is not called, someComponent is loaded on the pagefunctionsomeEvent(){open()// open modal}
Describe the solution you'd like
import{useModal}from'vue-final-modal'// no need to add it to the bundle// import SomeComponent from 'components' const{ open, close }=useModal({component: async()=>{ ... }// load component when it neededattrs: {...},})/* and when someEvent is triggered that causes the modal to open, before opening the modal, it first loads its component over the network.*/asyncfunctionsomeEvent(){awaitopen()// open modal (wait loading of dynamic component)}
Describe alternatives you've considered
Additional context
Thanks.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
Thanks.
The text was updated successfully, but these errors were encountered: