Skip to content

Commit

Permalink
Merge pull request #78 from CareEvolution/FixDebounceImport
Browse files Browse the repository at this point in the history
Use import for lodash debounce instead of require.
  • Loading branch information
greinard committed Jun 26, 2023
2 parents 92682d1 + 834a4b0 commit bfdeacc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@
"@fortawesome/free-regular-svg-icons": "^6.4.0",
"@fortawesome/free-solid-svg-icons": "^6.4.0",
"@fortawesome/react-fontawesome": "^0.2.0",
"@types/lodash": "^4.14.195",
"date-fns": "^2.28.0",
"html-react-parser": "^3.0.8",
"lodash": "^4.17.21",
"markdown-it": "^13.0.1",
"react-feather": "^2.0.9",
"react-fontawesome-svg-icon": "^1.1.2",
Expand Down
3 changes: 1 addition & 2 deletions src/helpers/Initialization.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import MyDataHelps, { EventName } from '@careevolution/mydatahelps-js';
import { DependencyList, useEffect } from 'react';

const debounce = require('lodash.debounce');
import { debounce } from 'lodash';

export function useInitializeView(initialize: () => void, additionalEvents?: EventName[], dependencies?: DependencyList): void {
useEffect(() => {
Expand Down

0 comments on commit bfdeacc

Please sign in to comment.