Home / Function/ href() — svelte Function Reference

href() — svelte Function Reference

Architecture documentation for the href() function in url.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  d881a99a_bfc6_f273_4883_0c9682725df4["href()"]
  25654e33_e6d5_1b08_6baf_586a26ac3d8f["SvelteURL"]
  d881a99a_bfc6_f273_4883_0c9682725df4 -->|defined in| 25654e33_e6d5_1b08_6baf_586a26ac3d8f
  a08b6cc5_af73_1be4_d02f_3113cf8a8305["get()"]
  d881a99a_bfc6_f273_4883_0c9682725df4 -->|calls| a08b6cc5_af73_1be4_d02f_3113cf8a8305
  63ee8247_ada4_9f1d_e139_0c1167cd5b1c["set()"]
  d881a99a_bfc6_f273_4883_0c9682725df4 -->|calls| 63ee8247_ada4_9f1d_e139_0c1167cd5b1c
  style d881a99a_bfc6_f273_4883_0c9682725df4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/reactivity/url.js lines 107–117

	get href() {
		get(this.#protocol);
		get(this.#username);
		get(this.#password);
		get(this.#hostname);
		get(this.#port);
		get(this.#pathname);
		get(this.#hash);
		get(this.#search);
		return super.href;
	}

Subdomains

Calls

Frequently Asked Questions

What does href() do?
href() is a function in the svelte codebase, defined in packages/svelte/src/reactivity/url.js.
Where is href() defined?
href() is defined in packages/svelte/src/reactivity/url.js at line 107.
What does href() call?
href() calls 2 function(s): get, set.

Analyze Your Own Codebase

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

Try Supermodel Free