0

I have a React app. I have the following react hook to get cookies using react-cookie.

const [cookies] = useCookies(["basket"]);

I already successfully get the cookie basket. Is there anyway for me to invoke a fresh update on the cookie "basket" if it was changed independently from this react app? I.e. a function for me to call to get the latest cookie value?

4

0 回答 0