Skip to content

Commit c93a645

Browse files
authored
docs: fix broken links (#13944)
1 parent b6fccdb commit c93a645

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.changeset/soft-snails-retire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: update broken links

packages/svelte/src/index-client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { lifecycle_outside_component } from './internal/shared/errors.js';
1414
*
1515
* If a function is returned _synchronously_ from `onMount`, it will be called when the component is unmounted.
1616
*
17-
* `onMount` does not run inside a [server-side component](https://svelte.dev/docs#run-time-server-side-component-api).
17+
* `onMount` does not run inside [server-side components](https://svelte.dev/docs/svelte/svelte-server#render).
1818
*
1919
* @template T
2020
* @param {() => NotFunction<T> | Promise<NotFunction<T>> | (() => any)} fn
@@ -64,7 +64,7 @@ function create_custom_event(type, detail, { bubbles = false, cancelable = false
6464
}
6565

6666
/**
67-
* Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs#template-syntax-component-directives-on-eventname).
67+
* Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs/svelte/legacy-on#Component-events).
6868
* Event dispatchers are functions that can take two arguments: `name` and `detail`.
6969
*
7070
* Component events created with `createEventDispatcher` create a

packages/svelte/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ declare module 'svelte' {
354354
*
355355
* If a function is returned _synchronously_ from `onMount`, it will be called when the component is unmounted.
356356
*
357-
* `onMount` does not run inside a [server-side component](https://svelte.dev/docs#run-time-server-side-component-api).
357+
* `onMount` does not run inside [server-side components](https://svelte.dev/docs/svelte/svelte-server#render).
358358
*
359359
* */
360360
export function onMount<T>(fn: () => NotFunction<T> | Promise<NotFunction<T>> | (() => any)): void;
@@ -367,7 +367,7 @@ declare module 'svelte' {
367367
* */
368368
export function onDestroy(fn: () => any): void;
369369
/**
370-
* Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs#template-syntax-component-directives-on-eventname).
370+
* Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs/svelte/legacy-on#Component-events).
371371
* Event dispatchers are functions that can take two arguments: `name` and `detail`.
372372
*
373373
* Component events created with `createEventDispatcher` create a

0 commit comments

Comments
 (0)