Closed JakobTolkemit closed 3 years ago
This doesn't solve #667, which prime reason are concurrent frontend calls, not internal over-use of order processing.
As for #681, personally I consider it undesirable side effect and that stateless shop-api shouldn't offer this functionality at all, moreover if a proper stateless cart context would be implemented, then this feature will never be called.
Though for the sake of a bit less broken shop-api plugin it can be done this way for 1.*
Thanks, Jakob! :1st_place_medal:
With this the
UserCartRecalculationListener
listens tolexik_jwt_authentication.on_jwt_created
instead ofsecurity.interactive_login
, recalculating the cart only on an actual login.Fixes: https://github.com/Sylius/ShopApiPlugin/issues/667 https://github.com/Sylius/ShopApiPlugin/issues/681