mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-10 04:14:54 -05:00
`options` slice was huge and managed a mix of generation parameters and general app settings. It has been split up: - Generation parameters are now in `generationSlice`. - Postprocessing parameters are now in `postprocessingSlice` - UI related things are now in `uiSlice` There is probably more to be done, like `gallerySlice` perhaps should only manage internal gallery state, and not if the gallery is displayed. Full-slice selectors have been made for each slice. Other organisational tweaks.
14 lines
301 B
TypeScript
14 lines
301 B
TypeScript
import { createSelector } from '@reduxjs/toolkit';
|
|
import { RootState } from 'app/store';
|
|
import _ from 'lodash';
|
|
|
|
export const lightboxSelector = createSelector(
|
|
(state: RootState) => state.lightbox,
|
|
(lightbox) => lightbox,
|
|
{
|
|
memoizeOptions: {
|
|
equalityCheck: _.isEqual,
|
|
},
|
|
}
|
|
);
|