Fix grid page unmount debug
This commit is contained in:
parent
12e0f092b6
commit
7c267caa0a
@ -27,8 +27,10 @@ export default function PhotoGridPage({
|
||||
|
||||
useEffect(
|
||||
() => {
|
||||
console.log('PhotoGridPage: unmount');
|
||||
return () => setSelectedPhotoIds?.(undefined);
|
||||
return () => {
|
||||
console.log('PhotoGridPage: unmount');
|
||||
setSelectedPhotoIds?.(undefined);
|
||||
};
|
||||
},
|
||||
[setSelectedPhotoIds]
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user