|
1 | 1 | import { DEV } from 'esm-env'; |
2 | | -import { source, set } from '../internal/client/reactivity/sources.js'; |
| 2 | +import { set, state } from '../internal/client/reactivity/sources.js'; |
3 | 3 | import { tag } from '../internal/client/dev/tracing.js'; |
4 | 4 | import { get } from '../internal/client/runtime.js'; |
5 | 5 | import { REPLACE, SvelteURLSearchParams } from './url-search-params.js'; |
@@ -40,14 +40,14 @@ export function get_current_url() { |
40 | 40 | * ``` |
41 | 41 | */ |
42 | 42 | export class SvelteURL extends URL { |
43 | | - #protocol = source(super.protocol); |
44 | | - #username = source(super.username); |
45 | | - #password = source(super.password); |
46 | | - #hostname = source(super.hostname); |
47 | | - #port = source(super.port); |
48 | | - #pathname = source(super.pathname); |
49 | | - #hash = source(super.hash); |
50 | | - #search = source(super.search); |
| 43 | + #protocol = state(super.protocol); |
| 44 | + #username = state(super.username); |
| 45 | + #password = state(super.password); |
| 46 | + #hostname = state(super.hostname); |
| 47 | + #port = state(super.port); |
| 48 | + #pathname = state(super.pathname); |
| 49 | + #hash = state(super.hash); |
| 50 | + #search = state(super.search); |
51 | 51 | #searchParams; |
52 | 52 |
|
53 | 53 | /** |
|
0 commit comments