Open cameronbraid opened 10 months ago
Another though on this.
Currently if I write my compoent fn as non async, it gets converted to async.
I don't need async components, so if the [component]
macro could preserve my non async
then I would be happy
Hrm, I just realised that this can't be done. Since at the callsite for the using custom element <CustomElement/>
there is no way to know if the custom element is async or not and therefore know if .await
sholud be added
errors with
'await' is only allowed inside 'async' functions and blocks
I am experimenting with the following trait and impl
which allows the following :
It moves data, and a bit awkward with the bracketing and .await but works none the less