Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slot for no results added #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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.

@@ -43,6 +43,7 @@ const stateHandler: StateHandler = {
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants