Skip to content

docs: tick example uses deprecated beforeUpdate even though tick is not deprecated #13931

@nmzein

Description

@nmzein

Describe the bug

The tick example in the doc uses beforeUpdate, perhaps it should be updated to a non-deprecated example? Below is the example from the docs:

<script>
	import { beforeUpdate, tick } from 'svelte';

	beforeUpdate(async () => {
		console.log('the component is about to update');
		await tick();
		console.log('the component just updated');
	});
</script>

Reproduction

N/A

Logs

No response

System Info

N/A

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions