ASK - how to implement using vue vite without nuxt on cookies storage? #35
Unanswered
syukriyansyah-ipb
asked this question in
Q&A
Replies: 1 comment
-
It's similar to https://github.com/iendeavor/pinia-plugin-persistedstate-2/tree/main/examples/nuxt-bridge-example: import cookie from 'js-cookie'
const persistedStatePlugin = createPersistedStatePlugin({
storage: {
getItem: async (key) => {
return cookie.get(key)
},
setItem: async (key, value) => {
cookie.set(key, value)
},
removeItem: async (key) => {
return cookie.remove(key)
},
},
})
// ... https://github.com/iendeavor/pinia-plugin-persistedstate-2#storage |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions