Automattic / Automattic/jetpack

Instant Search: add cancellation logic for outdated fetches

Open
#14,404 0 comments 0 reactions 1 assignee Claimed by @jsnmoon View on GitHub
[Feature] Search Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

From https://github.com/Automattic/jetpack/pull/12741#discussion_r299373087:

> Slow connections and unreliable connections are the reason you can't rely on debounce to protect against race conditions. If request 1 fires off, and then half a second later (a typical debounce timeout) request 2 fires off, there's no guarantee they'll resolve in that order. On fast networks they probably would, but on mobile and other networks that are quite variable in speed, there's no guarantee.

(This was originally part of #13027.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.