Open sdoxsee opened 11 months ago
Hi @sdoxsee ,
We are so happy to hear that you enjoy using the library 😊
It seems the problem is the way you use the setItem
function. You should pass a expireDays
or expireHours
like setItem({ key: "my-cookie", value: "test", expireDays: 1 })
To learn more you can check the docs
If you face any other problem, please feel free to contact us 👍😊
Enjoying this light dependency but facing an issue....
I wrap my app in the
CookieProvider
and then initially do agetItem("my-cookie")
. I seem to only be getting the value back after I've donesetItem("my-cookie", "my-value")
.Does the
CookieProvider
only handle what is set after-the-fact?Thanks!