No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Difference between quasar LocalStorage and vuex

    Help
    3
    4
    1222
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zafri last edited by

      I,ve been using LocalStorage for sharing data between components. But I know vuex does the same thing except vuex concept is single source of truth.

      My question is does data persist in LocalStorage supported in all browsers? Should I continue using LocalStorage because from what I’ve seen vuex is the way to go for data state management.

      1 Reply Last reply Reply Quote 0
      • benoitranque
        benoitranque last edited by

        It really depends what you want it for. Vuex is used for state management. Local storage is for data you want persisted between sessions. Ideal for settings

        1 Reply Last reply Reply Quote 1
        • F
          Frondor last edited by

          I don’t want to create a new topic for it so I’ll use this one.

          What’s the advantage of using Quasar.LocalStorage over native api?

          1 Reply Last reply Reply Quote 0
          • benoitranque
            benoitranque last edited by

            Helper methods, and conservation of data types

            Read more here

            1 Reply Last reply Reply Quote 1
            • First post
              Last post