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

Clarify findByIdSync #80

Closed
Powersource opened this issue Sep 26, 2022 · 1 comment · Fixed by #69
Closed

Clarify findByIdSync #80

Powersource opened this issue Sep 26, 2022 · 1 comment · Fixed by #69

Comments

@Powersource
Copy link
Collaborator

When reading the docs

sbot.metafeeds.findByIdSync(feedId)

Similar to findById, but returns synchronously. warning Note, in order to use this API, you must call sbot.metafeeds.loadState(cb) first, and wait for cb to be called.

It's a bit unclear if I just have to had called loadState at some point, or if i have to call it immediately before findByIdSync, every time.

@staltz
Copy link
Member

staltz commented Sep 26, 2022

I think we can remove this from readme because the functions were also deleted, is I remember correctly

@staltz staltz linked a pull request Sep 27, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants