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

State Syncing : EventBus.dispatch is not a function #54

Open
KevinBerthier opened this issue Nov 28, 2019 · 3 comments
Open

State Syncing : EventBus.dispatch is not a function #54

KevinBerthier opened this issue Nov 28, 2019 · 3 comments

Comments

@KevinBerthier
Copy link

Hi, thanks for your great work with Spraypaint & Graphiti !

I can't use the state sync. When I add ApplicationRecord.sync = true

I got EventBus.dispatch is not a function

It seems that we should call EventBus.default.dispatch to make it work

I tried with v0.10.8 and 0.10.9

@mkamensky
Copy link

@KevinBerthier Did you ever manage to solve this? Thanks

@KevinBerthier
Copy link
Author

To be fair, I never really tried

e-pavlica added a commit to e-pavlica/spraypaint.js that referenced this issue Aug 25, 2020
To address graphiti-api#54,
adjusts the EventBus import to preserve the imported name, while still adding
type definitions to the imported object.
e-pavlica added a commit to e-pavlica/spraypaint.js that referenced this issue Sep 22, 2020
To address graphiti-api#54,
adjusts the EventBus import to preserve the imported name, while still adding
type definitions to the imported object.
@mkamensky
Copy link

mkamensky commented Apr 9, 2021

It seems that a temporary solution is to replace

var EventBus = EventBusAny

with

var EventBus = EventBusAny.default

on line 3057 of spraypaint.js. I don't really know what is going on there, though

jeremyeng added a commit to jeremyeng/spraypaint.js that referenced this issue Aug 17, 2021
Implements the change in graphiti-api#54
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