Home / Function/ createSearchParams() — astro Function Reference

createSearchParams() — astro Function Reference

Architecture documentation for the createSearchParams() function in server-islands.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  212eecb4_260f_98c8_008f_3b0de43572a3["createSearchParams()"]
  cdac2309_6b88_4855_a8b7_92ab5e67a65d["server-islands.ts"]
  212eecb4_260f_98c8_008f_3b0de43572a3 -->|defined in| cdac2309_6b88_4855_a8b7_92ab5e67a65d
  bcfee27a_2e68_b340_ffdb_f47378299d82["getIslandContent()"]
  bcfee27a_2e68_b340_ffdb_f47378299d82 -->|calls| 212eecb4_260f_98c8_008f_3b0de43572a3
  style 212eecb4_260f_98c8_008f_3b0de43572a3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/server/render/server-islands.ts lines 36–46

function createSearchParams(
	encryptedComponentExport: string,
	encryptedProps: string,
	slots: string,
) {
	const params = new URLSearchParams();
	params.set('e', encryptedComponentExport);
	params.set('p', encryptedProps);
	params.set('s', slots);
	return params;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does createSearchParams() do?
createSearchParams() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/server-islands.ts.
Where is createSearchParams() defined?
createSearchParams() is defined in packages/astro/src/runtime/server/render/server-islands.ts at line 36.
What calls createSearchParams()?
createSearchParams() is called by 1 function(s): getIslandContent.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free