Closed jonaswjs closed 6 years ago
Widgets should not publish events after a page navigation.
When a widget is publishing an event immediately after a response of an http request the application could be on a new page. For Example if the request is taking some time.
How @jpommerening mentioned we should set a stopPublishingEvents = true in release() and test it in publish(): https://github.com/LaxarJS/laxar/blob/3a80b0ca9e3c8a32e6008b99af5a8c568adc5f7c/lib/runtime/widget_services.js#L663
stopPublishingEvents = true
release()
publish()
Fixed on master (v2.1.0) and release-2.0.x (v2.0.5).
master
v2.1.0
release-2.0.x
v2.0.5
Widgets should not publish events after a page navigation.
When a widget is publishing an event immediately after a response of an http request the application could be on a new page. For Example if the request is taking some time.
How @jpommerening mentioned we should set a
stopPublishingEvents = true
inrelease()
and test it inpublish()
: https://github.com/LaxarJS/laxar/blob/3a80b0ca9e3c8a32e6008b99af5a8c568adc5f7c/lib/runtime/widget_services.js#L663