solidjs / solid-docs-next

SolidJS Docs.
https://docs.solidjs.com/
208 stars 225 forks source link

[Content]: clientOnly docs should mention that returned component accept a fallback prop #792

Open cluk3 opened 2 weeks ago

cluk3 commented 2 weeks ago

📚 Subject area/topic

SolidStart clientOnly

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

https://docs.solidjs.com/solid-start/reference/client/client-only

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

The documentation doesn't mention how to show a fallback while the clientOnly component is loading, I thought I was supposed to use Suspense somehow when I randomly stumbled in a code example on the internet where I saw the returned component accepts a fallback prop. This is not intuitive and should be mentioned in the doc

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

No response