DEV Community

Discussion on: ⚠️ Don't try this at home: CSS _as_ the backend - introducing Cascading Server Sheets!

Collapse
 
qm3ster profile image
Mihail Malo

Did you mean to return Promise.resolve(x) instead of return x in an async function?

Collapse
 
thormeier profile image
Pascal Thormeier

That must've been a leftover from a previous version of the code, thanks for the find. It doesn't really make much of a difference, as simply returning a value is equivalent to returning a fulfilled promise explicitly.