Skip to content

Commit

Permalink
Merge pull request #260 from alleyinteractive/hotfix/usecallback-error
Browse files Browse the repository at this point in the history
Fix invalid use of useCallback
  • Loading branch information
mboynes authored Feb 14, 2024
2 parents 24379e2 + 45c74ff commit 17d0c73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/containers/container/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ function BylineSlotContainer({
actionReorderProfile: reorderProfile,
} = useDispatch(store);

const saveByline = useCallback(() => {
setBylineMeta(dispatch, metaKey);
}, [metaKey]);
// eslint-disable-next-line react-hooks/exhaustive-deps
const saveByline = useCallback(setBylineMeta(dispatch, metaKey), [metaKey]);

/**
* Save ALL bylines to the post meta in the expected schema.
Expand Down

0 comments on commit 17d0c73

Please sign in to comment.