InvokeAI/invokeai/frontend/web/src/app/store
psychedelicious 2acc93eb8e feat(ui): remove all calls to getBoardImagesTotals/getBoardAssetsTotals
This caused a crapload of network requests any time an image was generated.

The counts are necessary to handle the logic for inserting images into existing image list caches; we have to keep track of the counts.

Replace tag invalidation with manual cache updates in all cases, except the initial request (which is necessary to get the initial image counts).

One subtle change is to make the counts an object instead of a number. This is required for `immer` to handle draft states. This should be raised as a bug with RTK Query, as no error is thrown when attempting to update a primitive immer draft.
2023-10-05 08:11:52 +11:00
..
enhancers/reduxRemember feat: queued generation (#4502) 2023-09-20 15:09:24 +10:00
middleware feat(ui): remove all calls to getBoardImagesTotals/getBoardAssetsTotals 2023-10-05 08:11:52 +11:00
nanostores feat: queued generation (#4502) 2023-09-20 15:09:24 +10:00
util feat(ui): wip img2img layouting 2023-05-11 11:55:51 +10:00
actions.ts feat: queued generation (#4502) 2023-09-20 15:09:24 +10:00
constants.ts feat(ui): migrate to redux-remember 2023-05-11 11:55:51 +10:00
store.ts feat: queued generation (#4502) 2023-09-20 15:09:24 +10:00
storeHooks.ts cleanup(ui): Remove unused vars + minor bug fixes 2023-05-11 11:55:51 +10:00