You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug loadData() of EmailHandler is being called for every emission of event (e.g. OrderStateTransition), not just when it passes the filter() resulting all queries in loadData being run on any order transition.
To Reproduce
Steps to reproduce the behavior:
-find any EmailHandler definition that listen to .on(OrderStateTransition)
-set filter(x => false) so it would never pass
-insert console.log('Hello World'); to its loadData function
-transition any order to any state
-check the spam in the console
Expected behavior
loadData function should be invoked only for transition that pass the filter() function in EmailHandler
Environment (please complete the following information):
@vendure/core version: v16.1
The text was updated successfully, but these errors were encountered:
Describe the bug
loadData() of EmailHandler is being called for every emission of event (e.g. OrderStateTransition), not just when it passes the filter() resulting all queries in loadData being run on any order transition.
To Reproduce
Steps to reproduce the behavior:
-find any EmailHandler definition that listen to .on(OrderStateTransition)
-set filter(x => false) so it would never pass
-insert console.log('Hello World'); to its loadData function
-transition any order to any state
-check the spam in the console
Expected behavior
loadData function should be invoked only for transition that pass the filter() function in EmailHandler
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: