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

Empty List Component #757

Open
andrewchester1 opened this issue Jan 7, 2025 · 0 comments
Open

Empty List Component #757

andrewchester1 opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@andrewchester1
Copy link

Currently I am using Moti to build skeleton loaders for my app. With mode="parallax" it is hard to mockup a skeleton loader for an item. My current solution is check if the loading state, and if the data is loading, I create a new Carousel and Pagination, pass in [1] for the data, and render the skeleton loader. This causes a lot of duplicate code to get everything looking nice, and is not the best implementation.

It would be amazing if the carousel had an EmptyListComponent param. Inside this param I could check the loading state and show the skeleton component. This would also pass down the sizing for mode="parallax" to the empty list component, cutting my loading code in half.

@andrewchester1 andrewchester1 added the enhancement New feature or request label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants