Skip to content

A deeply reactive derived variable #16189

Open
@aster-void

Description

@aster-void

Describe the problem

As written in the svelte doc, variable declared with $derived are not converted to deeply reactive proxies:
https://svelte.dev/docs/svelte/$derived#Deriveds-and-reactivity

The only way there currently seems to be is using $state to create the derived variable and $effect to reflect the changes.

related discussion: #16187

Describe the proposed solution

I want something that allows me to natively do that.

maybe something like

const thisIsDeeplyReactive = $derived($state(source));

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions