/rtk-query-error-loop-mwe

Minimal working example for a self-retriggering corner case in rtk-query

Primary LanguageTypeScript

Running

yarn && yarn start

Reproducing the issue

  1. Submit some alphabetical query string (e.g., "foobar").
  2. Observe the single success debug print in the browser console.
  3. Submit a query string that is not purely alphabetical (e.g., "foo bar").
  4. Observe that error debug prints get produced in a loop.

An explanation can be found in ./src/App.tsx.