Skip to content
Discussion options

You must be logged in to vote

container.readData() is a convenience utility used internally, it's not exposed publicly because we don't want to encourage users to ignore the typed errors returned by Resource.read(). But yeah it's basically just container[href]?.read().get().

Even if container.readData was public, it's now async, but onCreatePublication needs to be sync.

There's no good reason for onCreatePublication to be synchronous (except that async functions were added pretty recently in the toolkit). Feel free to open a PR to make onCreatePublication async 👍

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@smoores-dev
Comment options

Answer selected by smoores-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants