State Syncing : EventBus.dispatch is not a function
Opened this issue · 3 comments
KevinBerthier commented
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 commented
@KevinBerthier Did you ever manage to solve this? Thanks
KevinBerthier commented
To be fair, I never really tried
mkamensky commented
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