Creating a Persisted Store that uses cookie as storage medium

Avatar

Avatar

JatinG

Avatar

JatinG

JatinG

25-06-2017

Hello folks,

I am trying to create the custom Persisted Store (Context Hub) that should use cookie as storage. By default, its the local storage. Is there any way we can modify the storage .

Note: As per the documentation, we can use either of local, session, memory, cookie storage as the persistence. I tried giving the persistence name as cookie in default config but this doesn't work.

var defaultConfig = {

   initialValues: {

        fullName : 'John',

        age  : 30
   },

   persistence : {

        name : 'cookie'
   }

};

Any suggestions ?

View Entire Topic

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.8K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

03-07-2017

Jörg HohFeike Visser​ Any help here?

~kautuk