Checkout Extension - Help Needed: ExtensionStaleNegotiatorError in App

Hi everyone,

I’m facing an issue with my checkout application and I’m hoping someone can help. I’m getting the following error:

applyCartLinesChange({
        type: "addCartLine",
        merchandiseId: productId,
        quantity: 1,
      })

Language used React Remix

Response:

{
    "type": "error",
    "message": "Could not apply line item changes. Error: Negotiation was stale."
}

Error:

ExtensionStaleNegotiatorError: Negotiation was stale.
at kve.performNegotiation (app.CSyqfhJP.js:38:170463)
at async f (app.CSyqfhJP.js:26:79636)
at async app.CSyqfhJP.js:26:79878
at async app.CSyqfhJP.js:38:171586
at async applyCartLinesChange (app.CSyqfhJP.js:26:79305)
at async Object.call (app.CSyqfhJP.js:2:38782)