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

    Datatable with server side pagination and Vuex

    Help
    2
    2
    1533
    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.
    • D
      danielo515 last edited by

      Hello,
      I really love the datatable component and I think I’m making good use of it.
      The documentation is good and clear, however I’m running into problems while using server side pagination and Vuex.
      I don’t want to reinvent the wheel neither handle pagination myself, so I’m just using the built-in methods of datatable. Because I’m using Vuex to handle the state all the pagination props should come from it (page, page size, results…) so far so good. In order to activate the server side pagination you have to provide an object with pagination information and here is where the problem comes. Because all the pagination controls are coming from Vuex they must be computed components, however vue is complaining that certain computed property requires a setter that it does not have. The datatable is working properly, but I’m worried about possible performance implications and problems.

      Thanks for your help.

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

        Please read on this issue on the vuex docs:
        https://vuex.vuejs.org/en/forms.html

        They also lsit possible solutions.

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