Javascript – How do I make my carousel respond to url changes?
I have a gallery, that opens individual images in a carousel. Unfortunately, I can't make it respond to URL path changes. const { signatura } = useParams(); const selectedPhotoIndex = useSelector(selectSelectedPhotoIndex); console.log(selectedPhotoIndex); const photos = useSelector(selectPhotos); useEffect(() => { const…