You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moving this line in scuttlebutt to be after line 217 fixes this issue, but makes 7 scuttlebutt tests fail (in clone.js and integrate2.js). The comment "really, this should happen before emitting" on line 214 makes me think I'm on the right track, no?
so it seems like level-scuttlebutt makes a clone of the ScuttleBucket via the standard Scuttlebutt.clone() but that does not handle sync'd adding of parts.
My guess is that you need to add all the parts here:
// open document from dbLevelScuttlebutt(db,Udid('scuttlebuddies'),function(){returnnewScuttleBucket().add('meta',newModel()).add('chat',newChat()).add('text',newText())})db.open('default',callback)
A really simple example lives here: https://github.com/nrw/bucket-example
The problem seems to be that
this.parts
isundefined
inScuttlebucket.prototype.applyUpdate
(here). Are we losing the properthis
binding somewhere?I should note that this test passes if you take out the
level-scuttlebutt
parts, so I'm reasonably sure the problem is in this module.The text was updated successfully, but these errors were encountered: