diff --git a/packages/client/src/redux/pack.test.tsx b/packages/client/src/redux/pack.test.tsx index 98930ac..ac08f93 100644 --- a/packages/client/src/redux/pack.test.tsx +++ b/packages/client/src/redux/pack.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import React, { useCallback } from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore, Dispatch } from 'redux' @@ -34,8 +34,10 @@ describe('pack', () => { } function FunctionalComponent(props: IProps) { + const update = useCallback(() => props.update(1, 'one'), []) + return ( - )