- Issue created by @balintbrews
- Merge request !692#3508562: Fix code component prop serialization in Astro islands β (Merged) created by Unnamed author
- πΊπΈUnited States effulgentsia
balintbrews β credited effulgentsia β .
- First commit to issue fork.
-
larowlan β
committed 59ea0010 on 0.x authored by
balintbrews β
#3508562: Fix code component prop serialization in Astro islands
-
larowlan β
committed 59ea0010 on 0.x authored by
balintbrews β
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Merged to 0.x - thanks
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
@effulgentsia came up with a way to patch Astro's code in our bundled hydration library (done in β¨ Hydration library for code components Active ), and introduce our own type identifier,
raw
, that allows us to pass values where Astro will work with the value as is. Alex also opened this PR for Astro: https://github.com/withastro/astro/pull/13046.On that PR:
Right now, while we have no specific plans to change the format, we can change it at will without worrying about breaking any other implementation. If youβre manually constructing islands, thereβs a risk that it would break in a patch release. Realistically youβd need to be responsible for checking yourself that there are no breaking changes in the format in new releases.
β https://github.com/withastro/astro/pull/13046#issuecomment-2609036184
Keeping this issue , but explicitly calling out the need for documenting this over at #3500945-8: Documentation for code components β .
Automatically closed - issue fixed for 2 weeks with no activity.