Closed
Description
Describe the bug
When I import a $state({...})
and pass it via Object.values(...)
as attribute to a sub-component reactivity does not work:
<script>
import { obj } from "./Data.svelte.js";
...
</script>
...
<Component lst={Object.values(obj)}/>
The Problem does not occur when using Object.values(obj)
locally or when creating a derived rune (let derivedObj = $derived(obj)
) and pass this one to the sub-component.
Reproduction
Logs
No response
System Info
reproduced in Preview
Severity
annoyance