polyzium
Explore posts from serversLazy named import?
I have code that depends on an async function for data, and thus I need to await it. Making a dirty hack to adapt an async function to a sync component via signals was a much simpler thing to make than what I am about to explain.
I have an async component:
the data fetcher:
and the export:
I searched this up on google and I tried this:
But I get an error:
I don't really understand what went wrong here, but one thing for sure, whatever broke this, it broke it terribly.
What is the fix for this, and if there isn't, should I go back to that dirty hack (see comment)?
26 replies