Commit Graph
12 Commits
Author SHA1 Message Date
Asher Gomez 8fa4141e06 refactor: replace useState() with useSignal() (#1234) 2023-06-02 06:43:01 +10:00
Luca Casonato 38e67b0a97 feat: support passing Uint8Array as island props (#1225)
This commit adds support for passing Uint8Array's to islands in
component props.
2023-05-31 08:34:57 +00:00
Luca Casonato e3f9a0df08 feat: support passing signals as island props (#757)
This commit adds support for passing signals to islands in component
props. This is useful for passing around mutable state between islands.
The signal's value needs to be serializable for this to work.
2023-05-31 10:29:46 +02:00
Luca Casonato a6852fa58f feat: more advanced prop serializer for islands (#1224)
This commit adds support for an advanced (de)serializer that is used
for page state (island props and plugin state). This new serializer
supports maintaining references (thus supporting circular objects,
and multi-referenced objects).

This is a pre-requisite for allowing to pass signals, JSX, Uint8Arrays,
Date, and many other "advanced" values.
2023-05-31 10:12:07 +02:00
lionel-roweandAsher Gomez 3932186993 docs: clarify what props can be passed to islands (#1131)
I was caught out by trying to pass `Infinity` as a prop to an island,
which is a valid IEEE 754 float, but bizarrely JSON serializes to
`null`.

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-05-25 19:03:01 +10:00
Luca Casonato 77142fe4a0 docs: remove JSX pragma everywhere 2022-09-08 11:53:38 +02:00
Yuki Tanaka 0449a4c73a docs: mention kebab case naming for islands (#572) 2022-08-08 21:22:58 +00:00
kku77 7524d00ccf docs: fix minor typos (#393) 2022-07-04 13:47:48 +00:00
Ryan Waskiewicz 4d6ddd5b21 docs: fix typos (#303) 2022-06-29 20:25:00 +02:00
Bartek IwańczukandLuca Casonato 0d0a137d6e docs: fix some issues (#294)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-06-28 14:22:14 +00:00
Luca Casonato 4d5f7a38c0 docs: finish up concepts docs (#292) 2022-06-28 15:47:56 +02:00
Luca Casonato 73fd41be31 feat: add docs section to website (#108) 2022-03-07 21:08:55 +01:00