Git Product home page Git Product logo

Comments (5)

Hiram-Wong avatar Hiram-Wong commented on July 19, 2024 1

Same issue. I have a list that varies in length depending on the filter. I change the length of the list, but there is no reaction because i called $state.complete() before. The infinite event no longer works. There's no way to change the state from 'complete' to 'loading'.

You can use the parameter identifier,If you call $state.complete() this method, change the value of identifier again.
image
image
image

from vue3-infinite-loading.

oumoussa98 avatar oumoussa98 commented on July 19, 2024

the $state object is only passed to the infinite event handler and it's not accessible by dom refs.
If you can provide more info about your use case would be helpful.

from vue3-infinite-loading.

Hiram-Wong avatar Hiram-Wong commented on July 19, 2024

the $state object is only passed to the infinite event handler and it's not accessible by dom refs. If you can provide more info about your use case would be helpful.

I need to request two api, one api interface is used to get the data, one api is to get the system configuration, the load function contains the api to get the data, get the system configuration I onmounted life cycle in vue, there are other functions to call the api parameters, I want to call the api when the parameters are empty when getting the system configuration api complete

from vue3-infinite-loading.

shexm avatar shexm commented on July 19, 2024

Same issue. I have a list that varies in length depending on the filter. I change the length of the list, but there is no reaction because i called $state.complete() before. The infinite event no longer works. There's no way to change the state from 'complete' to 'loading'.

from vue3-infinite-loading.

shexm avatar shexm commented on July 19, 2024

Thank you, bro! I have solved my problem. I should have been careful to read the document. You are very kind.

from vue3-infinite-loading.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.