mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Memoize kind list
This commit is contained in:
parent
78faf629e1
commit
f3ad21e22f
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue