Skip to content

Commit

Permalink
refactor: use lodash's memoize instead of custom implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Nov 16, 2023
1 parent d297d38 commit d54b280
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
1 change: 0 additions & 1 deletion src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export * from './schemas'
export { useLoadApp } from './useLoadApp'
export type { ModelSchemas, Schema } from './useLoadApp'
export * from './errors'
export { memoize } from './memoize'
export * from './user'
export * from './sections'
export * from './useDebounce'
Expand Down
33 changes: 0 additions & 33 deletions src/lib/memoize.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/pages/dataElements/form/useIsFieldValueUnique.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useDataEngine } from '@dhis2/app-runtime'
import i18n from '@dhis2/d2-i18n'
import memoize from 'lodash/memoize'
import { useMemo } from 'react'
import { useDebouncedCallback } from 'use-debounce'
import { memoize } from '../../../lib'
import { Pager } from '../../../types/generated'

const HAS_FIELD_VALUE_QUERY = {
Expand Down

0 comments on commit d54b280

Please sign in to comment.