InvokeAI/invokeai/frontend/web
psychedelicious 171a4e6d80 fix(ui): race condition when deleting a board and resetting selected/auto-add
We were checking the selected and auto-add board ids against the query cache to see if they still exist. If not, we reset.

This only works if the query cache is updated by the time we do the check - race condition!

We already have the board id from the query args, so there's no need to check the query cache - just compare the deleted board ID directly.

Previously this file's several listeners were all in a single one and I had adapted/split its logic up a bit wonkily, introducing these problems.
2024-07-29 11:36:03 +10:00
..
.storybook chore(ui): lint 2024-04-19 09:32:56 -04:00
patches feat(ui): patch reselect to use lruMemoize only 2024-01-06 00:03:07 +11:00
public fix missing quote in translation 2024-07-26 08:20:24 +10:00
scripts build(ui): add eslint no-console rule 2024-05-15 14:09:44 +10:00
src fix(ui): race condition when deleting a board and resetting selected/auto-add 2024-07-29 11:36:03 +10:00
static/docs feat(ui): update assets 2024-01-12 08:02:59 +11:00
__init__.py
.eslintignore fix(ui): fix workflow editor model selector, excise ONNX 2024-01-03 13:18:50 +11:00
.eslintrc.js build(ui): add eslint no-console rule 2024-05-15 14:09:44 +10:00
.gitignore tests(ui): set up vitest coverage 2024-05-15 14:09:44 +10:00
.prettierignore fix(ui): fix workflow editor model selector, excise ONNX 2024-01-03 13:18:50 +11:00
.prettierrc.js chore(ui): use new prettier config 2024-01-28 19:57:53 +11:00
index.html Add ID to the HTML link element 2024-04-15 07:54:36 +10:00
knip.ts Scope project files to src dir (enables --production) 2024-04-15 09:14:49 +10:00
package.json [MM2] Use typed ModelRecordChanges for model_install() rather than untyped dict (#6645) 2024-07-23 21:41:00 +00:00
pnpm-lock.yaml fix(ui): restore pnpm-lock.yaml 2024-07-24 08:07:32 +10:00
README.md docs: move frontend docs to mkdocs 2024-03-13 22:43:20 +11:00
tsconfig.json build(ui): enable TS strictPropertyInitialization 2024-05-15 14:09:44 +10:00
tsconfig.node.json fix(ui): fix package build 2024-03-01 10:42:33 +11:00
vite.config.mts tests(ui): set up vitest coverage 2024-05-15 14:09:44 +10:00