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

Bug in sync(a.b.c|customaction) #55

Open
Zireael opened this issue Mar 30, 2019 · 1 comment
Open

Bug in sync(a.b.c|customaction) #55

Zireael opened this issue Mar 30, 2019 · 1 comment

Comments

@Zireael
Copy link

Zireael commented Mar 30, 2019

Hi,
not sure if I'm doing it wrong - checked source code for your sync(), but can't find an issue with my application.

Basically, when I'm using computed sync(a.b.c!customaction), the customaction does not get executed.
Code example:
https://6y6vqmm38n.codesandbox.io/#/helloworld
codepen: https://codesandbox.io/s/6y6vqmm38n

My value in example code is declared as:
background: sync("extra/[email protected]|customaction")
I can see in vue devtools, that, when trying to modify text in input box, sync event gets emitted as such:

name:"sync"
type:"$emit"
source:"<HelloWorld>"
payload:Array[2]
0:"extra/[email protected]!"
1:"bluex"

image

The payload[0] doesn't seem to look right. It should have been $store.customaction if it's meant to be pointing to a custom action/mutation or something like that, I think?

@davestewart
Copy link
Owner

Hey, sorry - this issue slipped by me!

Did you get any resolve on it in the meantime?

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