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

    Infinite scroll doesn't load elements

    Help
    infinite scroll
    2
    4
    1557
    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.
    • B
      blazej last edited by

      Hi, I’m having a problem with infinite scroll - I use it in view where happens that c.a. 400 elements are showed, but it also happens that only 5-10 elements are in the view. As the component is working properly for many elements, it’s having problems with small amounts. It doesn’t load anything and show only spinner-dots. How to deal with this?

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

        This seems like you forgot to call the done method, once your data has been fetched. Please confirm that it is called correctly. In the Vue debug tools you can inspect the Infinite Scroll component and check if its state is still loading.

        1 Reply Last reply Reply Quote 0
        • B
          blazej last edited by

          The ‘done’ method is meant to be called by my function, and it seems as it has been called, but the compotent’s state is still loading.

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

            For simple debugging, just console.log something right before the done method should be called, to make sure it is indeed called.

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