I am trying to keep some values using useContext API while moving with navigate("/toLocation") (let navigate = useNavigate()
) but it refreshes and clears the value.
How do I use useNavigate and still keep the value in my context api
const handleClick = () => {
setSelectedNFT(nftData);
navigate('/nft/detail')
}