markprompt-js icon indicating copy to clipboard operation
markprompt-js copied to clipboard

Response gets cancelled in React strict mode

Open michaelfester opened this issue 1 year ago • 0 comments

Describe the bug

When React strict mode is enabled, the response gets cancelled when triggering from search.

To Reproduce

Steps to reproduce the behavior:

  1. Create a Next.js project with reactStrictMode: true in next.config.js
  2. Enable search on the <Markprompt /> React component
  3. Type a sentence in search, to trigger the "Ask AI" CTA
  4. Click the "Ask AI" CTA
  5. See the completion being canceled

Expected behavior

The completion should be fully executed.

michaelfester avatar Feb 20 '24 01:02 michaelfester