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
load() issue #1346
Comments
@fitouch You can try adding a wait option as the second parameter of load like this: - gun.user().get("messages").load(messages => console.log(messages));
+ gun.user().get("messages").load(messages => console.log(messages), {wait: timeInMilliseconds}); Try to figure out a minimum timeInMilliseconds that ensures all the data is loaded while ensuring a satisfactory response time. |
@trPrince That's what I did. Its not always guaranteed to get all of the data at once. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@amark When I used .load(), didn't get all the data one time. Sometimes it skipped some data or return
{}
. I tried it with 17,000 random messages. I have no issue with on() or open(), once() and load() didn't return all keys that I expected. I have my own relay peer with AWS config in Heroku as well.The text was updated successfully, but these errors were encountered: