Skip to content

fromStore() wrapper not updating deep reactivity - both waysΒ #16036

@dualjack

Description

@dualjack

Describe the bug

When using fromStore()

<script lang=ts>
	import {writable, fromStore} from "svelte/store";
	
	const x = writable({name: 'test'});
	const y = fromStore(x);
</script>

updating deep value of y.current.name - is not triggering update of x.name.
See below for playground link.


Additional info:
Using primitive value for store, ex.

conxt x = writable('TEXT')
const y = fromStore(x);

y.current = 'blabla';

works fine.

Reproduction

https://svelte.dev/playground/9c230404f43548bd9098c598ff205285?version=5.33.8

Logs

System Info

Svelte 5.33.X

Severity

blocking an upgrade

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