Closed dmengelt closed 1 year ago
@socsieng does this make sense to you? 😉
Unfortunately there is no guarantee of order for a comparison with JSON.stringify
but I think it is still better vs. the current solution.
@socsieng great thanks! yeah I had a quick look at deep-equal
. For now I think we are ok.
The check to determine if the client should be invalidated (and therefore the button is redrawn) is flaky for objects like
allowedPaymentMethods
. By usingJSON.stringify(value)
this change makes sure to compare strings. All unit tests validating this behaviour still pass.This should also fix #228 as
this.updateElement()
will no longer be triggered in this case.