Skip to content

Variable in Loop can overwrite (case insensitive?) Component Name #88

@stefnnn

Description

@stefnnn

If I use a variable in an loop, which clashes with a component name, I get an error when updating data ("vendor.set is undefined"), because the variable overwrites the component. I incorrectly assumed, that the component name is case-sensitive. I'm not sure, if this is the intended behaviour. If so, a warning would be rad 😄

	<div class="vendor_list">
		{{#each vendors as vendor, index}}

			<Vendor name="{{ vendor.name }} "/>
			
		{{/each}}
	</div>

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