Skip to content

on a key before the key is known, the on does not get fired after the key is later then made #116

@amark

Description

@amark
var gun = Gun();
// undefined
var keyC = gun.get('keyC').on(function(val){ console.log('keyC val', val) });
// undefined
// gun.js:1077 Warning! You have no peers to connect to!
// WAIT SOME TIME BEFORE DOING THE NEXT
gun.put({hello: 'world'}).key('keyC');
// Gun {_: Object, __: Object, back: Gun}
// 2gun.js:1077 Warning! You have no peers to connect to!
// WE SHOULD HAVE EXPECTED THE console.log TO HAVE BEEN CALLED!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions