Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Props passed are not reactive #26

Open
lhilton opened this issue Jun 3, 2018 · 1 comment
Open

Props passed are not reactive #26

lhilton opened this issue Jun 3, 2018 · 1 comment

Comments

@lhilton
Copy link

lhilton commented Jun 3, 2018

I am seeing a behavior that I did not expect. I am calling a modal, passing props into the component. My call to open the modal looks like this:

this.$vuedals.open({
    title: 'Deliver List',
    component: 'modals-dnf-delivery-list',
    props: {
        deliveries: this.deliveries
    },
    escapable: true
});

In the scope of this caller, the local this.deliveries is working as expected, I can see values behind the modal update when I trigger changes to the underlying data via the UI the modal offers.

Is this expected, or am I perhaps passing this incorrectly?

@javisperez
Copy link
Owner

The props values rely on v-bind directives and i don't think those are reactive (haven't try it to be honest though), maybe you could handle any need to update by using events bus? or maybe Vuex?

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

No branches or pull requests

2 participants