grofers / redux-cookies-middleware

redux-cookies-middleware is a Redux middleware which syncs a subset of your Redux store state with cookies.
MIT License
81 stars 16 forks source link

Does not initialize cookie with initial state #47

Closed dan-kez closed 6 years ago

dan-kez commented 6 years ago

Hello!

On initial load the middleware does not set (create) cookies equivalent to the initialState passed in. To be clear, the cookie does not exist on initial run.

I am required to send an action to mutate the state to trigger the initial save & creation of the cookie.

priyansh1161 commented 6 years ago

@dmk255 hey, can you please share the code snippet with which you are facing this issue?

anubhav7495 commented 6 years ago

Closing due to no activity for a long time.