Skip to content

Conversation

rparnpuu
Copy link

As this library is also used for lists that are filtered, then I believe it would be better to inform the user that there are no results.

This PR is for adding a new slot "noResults" for the mentioned feature.

I used already existing "firstLoad" props, but could add a new parameter "isInitialLoad" if firstLoad is not a good selection for this.

PS: showError was created for consistency.

@netlify
Copy link

netlify bot commented Aug 21, 2023

Deploy Preview for vue3-infinite-loading-demo ready!

Name Link
🔨 Latest commit 21be956
🔍 Latest deploy log https://app.netlify.com/sites/vue3-infinite-loading-demo/deploys/64e351b76c9dd600084edef2
😎 Deploy Preview https://deploy-preview-72--vue3-infinite-loading-demo.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

state.value = "loading";
},
async loaded() {
params.firstload = false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regarding the documentation, firstload is used for a different scope.

This property is used to specify weither you want the component to handle first load or not 

Create an internal variable to store it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants