markprompt-js
markprompt-js copied to clipboard
Response gets cancelled in React strict mode
Describe the bug
When React strict mode is enabled, the response gets cancelled when triggering from search.
To Reproduce
Steps to reproduce the behavior:
- Create a Next.js project with
reactStrictMode: true
innext.config.js
- Enable search on the
<Markprompt />
React component - Type a sentence in search, to trigger the "Ask AI" CTA
- Click the "Ask AI" CTA
- See the completion being canceled
Expected behavior
The completion should be fully executed.