Skip to content

Commit

Permalink
Removes instance of useStoreState dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlplusb committed Jul 23, 2019
1 parent cd14db1 commit 1ff97f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/computed.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ test('computed properties work in a React component', () => {
// arrange
let renderCount = 0;
function Product({ id }) {
const product = useStoreState(state => state.products.itemMap[id], [id]);
const product = useStoreState(state => state.products.itemMap[id]);
renderCount += 1;
return <div data-testid="name">{product.name}</div>;
}
Expand Down

0 comments on commit 1ff97f7

Please sign in to comment.