nowaalex / af-utils

Simple open-source tools that just work (usually fast)
https://af-utils.com
MIT License
75 stars 5 forks source link

Not able to run Load on Demand Example #28

Closed kartset closed 1 year ago

kartset commented 1 year ago

I was trying to use Load On Demand example but if I copy paste the entire example code provided on the link, I get an infinite scrollable list with costant additions of new posts without even scrolling which is not really the behavior shown on the website which works perfectly. I even tried to clone this repository so that I can check the code you might have used for website but no luck. Click here to see the output if we copy the code from the website. There was only one change that I did, I copied the useFakerseed code from the repository in the example.

nowaalex commented 1 year ago

@kartset 1.) This website is built with tailwindcss. h-full class means height: 100%. Without tailwind it is useless. 2.) List's desire to stretch vertically should be limited somehow. Some options:

kartset commented 1 year ago

Hi @nowaalex, I implemented your suggestions in the same sandbox and it is working as expected now. Thanks.