Score:0

Cart update event triggering for every field

sv flag

In Commerce's cart form, I've noticed that the cart update event is fired more than once. (Potentially, it's fired once per field in the form.) Events have the stopPropagation() function, but it doesn't seem to work. The update sends requests to a remote API and the checkout process has been slowed down to a crawl because of multiple requests being sent on each step.

Do you know how to get all fields ONCE, do stuff, then impede additional triggering of the event?

Thanks

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.