Skip to content

Commit 82511dc

Browse files
committed
Remove the goroutine wrapper from componentupdate
Will re-evaluate this later.
1 parent 8b34a29 commit 82511dc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎component.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,7 @@ func makeComponentUpdateFunc(f func(c Cops) bool) *js.Object {
421421

422422
func makeComponentUpdateVoidFunc(f func(c Cops)) *js.Object {
423423
return js.MakeFunc(func(this *js.Object, arguments []*js.Object) interface{} {
424-
go func() {
425-
f(extractComponentUpdateArgs(arguments))
426-
}()
424+
f(extractComponentUpdateArgs(arguments))
427425
return nil
428426
})
429427
}

0 commit comments

Comments
 (0)