Skip to content

Commit 9bcfe00

Browse files
author
Marin Visscher
committed
Do reload on ID change
1 parent 557ab2f commit 9bcfe00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend-app/src/app/products/[id]/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default function ProductPage(): JSX.Element {
9999
} else if (id !== 'new') {
100100
getProduct(parseInt(id)).then(setProduct);
101101
}
102-
}, []);
102+
}, [id]);
103103

104104
useEffect(() => {
105105
return navigation.addListener('beforeRemove', (e) => {

0 commit comments

Comments
 (0)