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

    How to update data-table with new data after fetching from REST API?

    Help
    2
    3
    1202
    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.
    • R
      rrigby last edited by

      Hi,
      I’m new to Quasar and Vue and also have limited experience with js in general. I am having trouble getting a data-table to update with new data. I am able to get the table to populate by hardcoding a dummy array, however when I fetch new data from a REST API and put in the my data array variable the table does not update with the new data. Ideally the table would start out empty and then get populated with data fetch from the API.
      I have spend about one day looking through all the Quasar docs and well as Vue.js docs, but can’t find any solution. I am possibly missing something obvious.
      Thanks!

      1 Reply Last reply Reply Quote 0
      • R
        rrigby last edited by

        I got it working now. Not entirely sure what the issue was, but I’m happy that it works now.

        1 Reply Last reply Reply Quote 0
        • G
          gasserol last edited by

          @rrigby Could you please share your solution? New to quasar and vuejs too, so your code would help me… many thanks in advance and BR!

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