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

[0.5.x] Ensures precog requests do not interfere with non-precog requests #78

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

timacdonald
Copy link
Member

@timacdonald timacdonald commented Jun 24, 2024

fixes #73

The precognition client will always cancel in-flight requests that match a new outgoing request. This is done to ensure that only the latest validation messages are returned and that we don't get out-of-order responses.

For non-Inertia libraries, we also use the client to submit forms. There are rare situations where a validation request can cancel and actual submission request.

This PR ensures that non-precognitive requests are never cancelled by the library - which is the expected behaviour.

This only impacts the non-Inertia flavoured libraries.

@robdekort
Copy link

Woohoo. I can confirm this PR solves #73. Amazing stuff. ❤️

@taylorotwell taylorotwell merged commit ef3b735 into main Jun 25, 2024
4 checks passed
@taylorotwell taylorotwell deleted the submit-tokens branch June 25, 2024 21:28
@timacdonald
Copy link
Member Author

Thanks for letting me know, @robdekort

@timacdonald timacdonald changed the title [1.x] Ensures precog requests do not interfere with non-precog requests [0.5.x] Ensures precog requests do not interfere with non-precog requests Aug 15, 2024
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

Successfully merging this pull request may close these issues.

Executing code via a listener during Precognition requests leads to ERR_CANCELED
3 participants