Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Reactivity of properties of modals #32

Open
Kilovatiy opened this issue Jun 29, 2022 · 0 comments
Open

Reactivity of properties of modals #32

Kilovatiy opened this issue Jun 29, 2022 · 0 comments

Comments

@Kilovatiy
Copy link

Kilovatiy commented Jun 29, 2022

I'm trying to create a modal window with reactive components, but I failed.
so, i create modalsService wrapper as so:
import { create as createModal } from 'vue-modal-dialogs';
export const modalsService = {
createModal,
toast: createModal(Toast, 'options', 'longRunningJob'),
};

then in my main component i have something like this to show modal:
modalsService.toast({message:'some text'}, this.isProcessing)

so, in modal(toast) i have this property passed, but it is not reactive.
Is there any way to detect if property that i passed have changed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant