Skip to content

State persistent in Browser storage #1863

Discussion options

You must be logged in to vote

For this you have to use https://vueuse.org/core/usestorageasync/#usestorageasync to create your own wrapper and put it within a store:

export const useStore = defineStore('id', () => {
  const state = useStorageAsync(...)
})

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@rendomnet
Comment options

@posva
Comment options

@rendomnet
Comment options

@posva
Comment options

Answer selected by posva
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1861 on December 11, 2022 08:14.