feat: serialize bigints for islands (#1317)

This commit is contained in:
Lino Le Van
2023-06-17 20:31:58 +02:00
committed by GitHub
parent ea6a74237d
commit 4d66f95ef6
5 changed files with 23 additions and 2 deletions
+2 -2
View File
@@ -34,9 +34,9 @@ care of automatically re-hydrating the island on the client.
Passing props to islands is supported, but only if the props are serializable.
Fresh can serialize the following types of values:
- Primitive types `string`, `boolean`, and `null`
- Primitive types `string`, `boolean`, `bigint`, and `null`
- Most `number`s (`Infinity`, `-Infinity`, and `NaN` are silently converted to
`null`, and `bigint`s are not supported)
`null`)
- Plain objects with string keys and serializable values
- Arrays containing serializable values
- Uint8Array