Skip to content

Function bindings broken in async component #17129

@dylan1951

Description

@dylan1951

Describe the bug

Since 5.43.0 function bindings are throwing various errors in async components.

Reproduction

REPL

<script>
	await 1;
	
	let value = $state('');

	function getValue() { return value }

	function setValue(v) { value = v }
</script>

<input bind:value={getValue, setValue} />

Logs

Cannot read properties of undefined (reading 'f') in <unknown> in __wrapper.svelte

System Info

Svelte playground

Severity

blocking an upgrade

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions