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

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

Closed
amark opened this issue Nov 2, 2015 · 1 comment
Labels

Comments

@amark
Copy link
Owner

amark commented Nov 2, 2015

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!
@metasean metasean added the fix label Nov 3, 2015
amark added a commit that referenced this issue Nov 10, 2015
@metasean
Copy link
Collaborator

metasean commented Jan 4, 2016

Fixed per timeywimey tests

@metasean metasean closed this as completed Jan 4, 2016
jjfraz11 pushed a commit to mochiapp/gun that referenced this issue Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants