graphiti-api/spraypaint.js

State Syncing : EventBus.dispatch is not a function

Opened this issue · 3 comments

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

@KevinBerthier Did you ever manage to solve this? Thanks

To be fair, I never really tried

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