Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response gets cancelled in React strict mode #317

Open
michaelfester opened this issue Feb 20, 2024 · 0 comments
Open

Response gets cancelled in React strict mode #317

michaelfester opened this issue Feb 20, 2024 · 0 comments
Assignees

Comments

@michaelfester
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants