solidjs / solid-docs

SolidJS Docs.
https://docs.solidjs.com/
224 stars 264 forks source link

[Content]: Specify that Server Functions must be async or return a promise #891

Closed ryansolid closed 1 month ago

ryansolid commented 1 month ago

📚 Subject area/topic

/solid-start/reference/server/use-server.mdx

📋 Page(s) affected (or suggested, for new content)

https://docs.solidjs.com/solid-start/reference/server/use-server

📋 Description of content that is out-of-date or incorrect

We should make sure people know that server functions are async (or at least return a promise). We can't enforce this at a types or compiler level so we must make sure docs are clear.

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

No response