serializeArray() — astro Function Reference
Architecture documentation for the serializeArray() function in serialize.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 42efedaa_f93f_0129_45b0_2c2090ccf2dc["serializeArray()"] 503a0de8_cf3d_458a_44c0_c9f295739fb6["serialize.ts"] 42efedaa_f93f_0129_45b0_2c2090ccf2dc -->|defined in| 503a0de8_cf3d_458a_44c0_c9f295739fb6 1502697a_a04e_810c_bd56_b25bd832d1c5["convertToSerializedForm()"] 1502697a_a04e_810c_bd56_b25bd832d1c5 -->|calls| 42efedaa_f93f_0129_45b0_2c2090ccf2dc 1502697a_a04e_810c_bd56_b25bd832d1c5["convertToSerializedForm()"] 42efedaa_f93f_0129_45b0_2c2090ccf2dc -->|calls| 1502697a_a04e_810c_bd56_b25bd832d1c5 style 42efedaa_f93f_0129_45b0_2c2090ccf2dc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/serialize.ts lines 19–35
function serializeArray(
value: any[],
metadata: AstroComponentMetadata | Record<string, any> = {},
parents = new WeakSet<any>(),
): any[] {
if (parents.has(value)) {
throw new Error(`Cyclic reference detected while serializing props for <${metadata.displayName} client:${metadata.hydrate}>!
Cyclic references cannot be safely serialized for client-side usage. Please remove the cyclic reference.`);
}
parents.add(value);
const serialized = value.map((v) => {
return convertToSerializedForm(v, metadata, parents);
});
parents.delete(value);
return serialized;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does serializeArray() do?
serializeArray() is a function in the astro codebase, defined in packages/astro/src/runtime/server/serialize.ts.
Where is serializeArray() defined?
serializeArray() is defined in packages/astro/src/runtime/server/serialize.ts at line 19.
What does serializeArray() call?
serializeArray() calls 1 function(s): convertToSerializedForm.
What calls serializeArray()?
serializeArray() is called by 1 function(s): convertToSerializedForm.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free