Memoize kind list

This commit is contained in:
Sam Carlton 2022-05-20 12:20:31 -05:00
parent 78faf629e1
commit f3ad21e22f
2 changed files with 5 additions and 1 deletions

View file

@ -28,7 +28,7 @@ import {
writeStorkToml writeStorkToml
} from '~/helpers/stork/toml.js' } from '~/helpers/stork/toml.js'
import { import {
KindList KindListMemoized as KindList
} from '~/helpers/api/kind.js' } from '~/helpers/api/kind.js'
import { import {
apiDirectory apiDirectory

View file

@ -1,3 +1,5 @@
import memoizeGetters from 'memoize-getters'
import { import {
apiDirectory apiDirectory
} from '~/helpers/api/config.js' } from '~/helpers/api/config.js'
@ -62,3 +64,5 @@ export class KindList extends PaginatedList {
} }
} }
export const KindListMemoized = memoizeGetters( KindList )