withastro / docs

Astro documentation
https://docs.astro.build/
MIT License
1.33k stars 1.48k forks source link

Document limitations of island prop serialization #9557

Open ascorbic opened 2 weeks ago

ascorbic commented 2 weeks ago

📚 Subject area/topic

Islands

📋 Suggested page

📋 General description or bullet points (if proposing new content)

The framework components guide documents the fact that you can't pass functions to client components, but it doesn't document any of the other restrictions. It also doesn't document any of these for server islands. Values must be serializable, and the following types are supported: plain object, number, string, Array, Map, Set, RegExp, Date, BigInt, URL, Uint8Array, Uint16Array, Uint32Array, Infinity. Circular references and functions are not supported.

🖥️ Reproduction of code samples in StackBlitz

No response

sarah11918 commented 2 weeks ago

Thanks Matt! Where are our framework/island fans? Who wants to help update docs??