Skip to content

Documentation: Lifecycle hooks example is wrong #15404

@schontz

Description

@schontz

Describe the bug

https://github.com/sveltejs/svelte/blob/main/documentation/docs/06-runtime/03-lifecycle-hooks.md

The theme change callback, toggle is incorrect. The linked "After" code is correct, though.

Reproduction

toggleValue is undefined

Logs

System Info

n/a

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions