Skip to content

Commit

Permalink
Import only needed part of lodash
Browse files Browse the repository at this point in the history
Don't import all of lodash; only import the module for the
function that we are using.

This decreases the server bundle size.
  • Loading branch information
lpsinger committed Dec 16, 2024
1 parent 08d587f commit 821cbd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/UserLookup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { action } from 'app/routes/api.users'
import classnames from 'classnames'
import type { UseComboboxProps, UseComboboxStateChange } from 'downshift'
import { useCombobox } from 'downshift'
import { debounce } from 'lodash'
import debounce from 'lodash/debounce.js'
import { useCallback, useEffect, useState } from 'react'

import { formatAuthor } from '~/routes/circulars/circulars.lib'
Expand Down

0 comments on commit 821cbd5

Please sign in to comment.