Skip to content

Using literal when spreading props generates invalid code #3185

@Conduitry

Description

@Conduitry
<Foo {...{ bar: 42 }}/>

generates

			var foo_changes = () ? get_spread_update(foo_spread_levels, [
				{ bar: 42 }
			]) : {};

because { bar: 42 } has no dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions