vue-cookie icon indicating copy to clipboard operation
vue-cookie copied to clipboard

Watch cookie change

Open AMontagu opened this issue 8 years ago • 6 comments

Hello,

It is possible to watch a cookie changement in the vuejs watch property ?

AMontagu avatar Oct 03 '17 09:10 AMontagu

I'm interested in this as well.

spinegar avatar Sep 29 '18 20:09 spinegar

yep, would be great

CavalcanteLeo avatar Jan 07 '19 02:01 CavalcanteLeo

waiting for answer...

choerulsofyan avatar Apr 26 '19 06:04 choerulsofyan

Could we get any news on whether or not this feature is planned?

KentHawkings avatar Jul 26 '19 07:07 KentHawkings

We can try something creating an event with window.dispatchEvent() and after that get event with window.addEventListener.

alissonpelizaro avatar Jun 09 '20 16:06 alissonpelizaro

It's not currently possible because cookies are not locally stored and updated when set from an http request, this is just a wrapper for tiny cookie, however an implementation is quite easy to do, since this repo seems to be dead

I made a new implementation inspired by another project, the api is very similar, the only change would be the delete method that is named remove in my package

It's fully reactive and hooks on outgoing http requests to update cookies as well

Tofandel avatar Jul 27 '20 12:07 Tofandel