Skip to content

fix dynamic event handler for bind variables#4155

Merged
Conduitry merged 1 commit intosveltejs:masterfrom
tanhauhau:tanhauhau/fix-dynamic-event-handler-reassigned-race-condition
Dec 24, 2019
Merged

fix dynamic event handler for bind variables#4155
Conduitry merged 1 commit intosveltejs:masterfrom
tanhauhau:tanhauhau/fix-dynamic-event-handler-reassigned-race-condition

Conversation

@tanhauhau
Copy link
Copy Markdown
Member

in EventHandler we are setting the reassigned in constructor, which may run first before other template components set the reassigned property for the dependencies variable.

  • the reassigned should be evaluated during "render", after template traversal.

@Conduitry Conduitry merged commit 709b4d3 into sveltejs:master Dec 24, 2019
@tanhauhau tanhauhau deleted the tanhauhau/fix-dynamic-event-handler-reassigned-race-condition branch December 24, 2019 16:00
@Conduitry
Copy link
Copy Markdown
Member

Released in 3.16.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants