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
onMsgAdded itself is an obz, so the latest message added to the database can also be read using ssb.db.onMsgAdded.value
but when I tried getting using .value I only got undefined. The callback worked though. When searching I saw that we only test the callback form and not .value, so could be worth doing that to see if it's actually broken/the docs are wrong or if i just used it wrong.
The text was updated successfully, but these errors were encountered:
According to the docs https://github.com/ssbc/ssb-db2#onmsgaddedcb you can do like this instead of using the callback
but when I tried getting using .value I only got undefined. The callback worked though. When searching I saw that we only test the callback form and not .value, so could be worth doing that to see if it's actually broken/the docs are wrong or if i just used it wrong.
The text was updated successfully, but these errors were encountered: