change to "shouldEmit"