Better Rendering Performance with Virtual Lists

Better Rendering Performance with Virtual Lists

LearnVue

1 год назад

31,368 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@LearnVue
@LearnVue - 30.09.2022 04:42

Shoot. A lot of yall have mentioned this so it's definitely something I should've included in the video, but.

The itemHeight property can also be a function if your elements have different heights. For example,

{
itemHeight: (index) => index % 2 === 0 ? 500 : 1000
}

This still doesn't answer the question yall have about accepting variable text lengths and converting that to heights and tbh I haven't found out a solution that I like for that yet...So if you have ideas, drop a comment

Ответить
@user-vs7tp1fn2n
@user-vs7tp1fn2n - 24.09.2023 08:34

This kind of videos are amazing, super helpful, thank you so much !

Ответить
@ZeyadMohamed-uj5pn
@ZeyadMohamed-uj5pn - 30.07.2023 12:17

I have a question?
it doesn't work & I'm understand nothing.

Ответить
@SerpentsHiss
@SerpentsHiss - 21.07.2023 02:52

Thanks for the explanation of what the function actually did, I was banging my head against the wall because I thought it worked differently, as soon as I saw your explanation the fix was apparent.

Ответить
@kirankothandan5529
@kirankothandan5529 - 17.06.2023 07:22

I have a question. For example, if the user has millions of data and we are virtualizing the list, which is fine. However, I am curious to know how we should deal with the data. When the scroll hits a particular threshold, we load a new batch of data from the API. Should we concatenate the incoming data to the existing list? This approach may cause performance problems. I'm assuming that if the user scrolls up again, we may need to call the API again to load more data. Please advise.

Ответить
@emmanuelgodswill9169
@emmanuelgodswill9169 - 11.03.2023 14:27

Once again you don't disappoint, like the video before watching, and loved it

Ответить
@alejandrosauqueperez931
@alejandrosauqueperez931 - 01.03.2023 02:52

Amazing!

Ответить
@karwanjabar5548
@karwanjabar5548 - 23.01.2023 12:37

can anyone tell me why it is not working now and official document says use another package instead
how can i use with inertia

Ответить
@JannisAdmek
@JannisAdmek - 07.01.2023 01:25

This is really cool! Can I use this with a regular table as well? I have a table with 65000 items and I only see 10 at a time.

Ответить
@carstenhoschele8016
@carstenhoschele8016 - 17.12.2022 17:32

Does this work for vue2 as well?

Ответить
@bm2085
@bm2085 - 14.12.2022 21:51

Thank you, this was really helpful!

Ответить
@Regeneration1996
@Regeneration1996 - 10.12.2022 02:12

Nice 👌 question can be used for a grid list of cards or card displayed flex, flex direction row and flex-wrap wrap?

Ответить
@paoloforti8707
@paoloforti8707 - 29.11.2022 23:30

Hi, and thanks for the tutorial. I implemented a virtual list but I have a use case that requires the list to be sortable. Is that possible? I tried to sort the list passed as argument to the useVirtualList composable but the list is not being updated, while using filters works fine and the list gets updated.
Am I missing something?

Ответить
@bluemesastudios
@bluemesastudios - 20.11.2022 00:11

Hi - beautiful work! I created a new Vue project and copied the code you provided. I may have done something incorrectly because my code loads all the elements at once : ( I check the inspector, and it does indeed confirm that all the 50 divs exist. So I changed the data parameter to 100, and sure enough, I have 100 divs that are all built and loaded...

It may be a configuration issue - I don't know.


I'm using Firefox.

Do you happen to have a github repo for this? I would be happy to study it.

Thanks!

Ответить
@reagandesigns6432
@reagandesigns6432 - 31.10.2022 18:46

This is very helpful since I am fetching a data from an API with 400+ data. Question, because I am confused on how this would work if the v-for list are in 4 columns?

Ответить
@jonnysongs
@jonnysongs - 27.10.2022 21:13

Your vids are so good bro, thank you

Ответить
@carlosestebanriosllanos8765
@carlosestebanriosllanos8765 - 17.10.2022 18:55

hahsdhahah good

Ответить
@tumelopetsane5500
@tumelopetsane5500 - 17.10.2022 15:04

thanks helpful vid

Ответить
@aliyahjanifahlomondot7049
@aliyahjanifahlomondot7049 - 15.10.2022 01:02

i really apreciate your help with dowloanding this software

Ответить
@edwinolvera2731
@edwinolvera2731 - 14.10.2022 23:42

Worked, thx

Ответить
@A28480
@A28480 - 12.10.2022 16:22

Great video!

Ответить
@alisson715
@alisson715 - 12.10.2022 12:59

Works well!! DANKEEE

Ответить
@StefanIvanov188
@StefanIvanov188 - 10.10.2022 22:06

Awesome tutorials! But what if we have dynamic height for list item?

Ответить
@eelitonmenezes8020
@eelitonmenezes8020 - 10.10.2022 02:16

+sub

Ответить
@ptugul
@ptugul - 08.10.2022 13:28

Woah, great video mate!

Ответить
@hongquannguyen8873
@hongquannguyen8873 - 07.10.2022 12:07

For once, the software is actually really useful

Ответить
@takacszoltan5689
@takacszoltan5689 - 07.10.2022 01:18

thanks for the help it help my every thing i need to install

Ответить
@zlotnytskiy
@zlotnytskiy - 06.10.2022 01:38

reddit developers, add this thing, please 🙏... I know that it is not on vue, but do something similar

Ответить
@alphacraftserver3691
@alphacraftserver3691 - 06.10.2022 00:35

Works well!! DANKEEE

Ответить
@denidjiauw7975
@denidjiauw7975 - 05.10.2022 23:29

I'm not sure about tNice tutorials, but if you wanna fix it open GMS. Then in the GMS, there's a light blue screen with a lot of buttons and other stuff.

Ответить
@luisachaparro8446
@luisachaparro8446 - 05.10.2022 19:53

thank you so much dude you're a god

Ответить
@maxavylys3169
@maxavylys3169 - 05.10.2022 19:27

Works well!! DANKEEE

Ответить
@sostheneintamba1446
@sostheneintamba1446 - 05.10.2022 18:18

Thank you so much this helped a lot!!!! You saved my life

Ответить
@shadkamel362
@shadkamel362 - 05.10.2022 08:39

that is great

Ответить
@yt-black7442
@yt-black7442 - 05.10.2022 07:19

Very helpful

Ответить
@ma.donnabelramos4350
@ma.donnabelramos4350 - 04.10.2022 21:50

that you are homo but as I said I can't tell the difference if they make a joke or are actually believing tNice tutorials.

Ответить
@roshanikumbharkar6266
@roshanikumbharkar6266 - 04.10.2022 14:47

It really worked for me after I look and try some tutorials, yours is the one that worked. Owe you a lot.

Ответить
@anparisu
@anparisu - 03.10.2022 11:45

Amazing content as always, not sure why your channel is not more popular than it is! Definitely one of the hidden gems for Vue devs.

Ответить
@pyplacca
@pyplacca - 03.10.2022 00:05

Does this work with horizontal lists?

Ответить
@MuhammadM1998
@MuhammadM1998 - 02.10.2022 19:47

Your videos are awesome. Your approach is similar to fireship (which is amazzzzing) but with extra focus on vue (which is more amazzzzzing to me). Thank You!

Ответить
@fenandosabado7185
@fenandosabado7185 - 02.10.2022 18:01

yo bro, really thankya. Big respect

Ответить
@khushhirani9389
@khushhirani9389 - 02.10.2022 10:42

k; nbj

Ответить
@yayin5929
@yayin5929 - 02.10.2022 07:44

It's kinda hard to implement if you have a dynamic height element.

Ответить
@benyaminbolhassani3708
@benyaminbolhassani3708 - 02.10.2022 06:23

one of the best explanations

Ответить
@manums__
@manums__ - 01.10.2022 20:47

mine too

Ответить
@drisslachaal4293
@drisslachaal4293 - 01.10.2022 15:27

thank you so much dude you're a god

Ответить
@patrickraedler3656
@patrickraedler3656 - 30.09.2022 22:46

Just today I was looking for a library to implement infinite scrolling with Vue and didn't find anything that convinced me. This video comes just in time <3

Ответить
@isidorenwaiwu2793
@isidorenwaiwu2793 - 30.09.2022 17:28

The algorithm triumphs or am I been monitored😅😅. I am currently building a project at this very moment, where this feature is exactly what I need (14hrs after the video upload).
I just am currently taking a small break and happen to come across this tutorial.
I have an api that displays about 1460 objects in an array. There is no endpoint to comfortably implement pagination on the api. I have been thinking of a solution and wanted to use indexedDB to store the data and build my pagination around indexedDB.
This tutorial just came at the right moment...

Ответить
@dbssman
@dbssman - 30.09.2022 14:27

Nice content as always!

Ответить
@AndrewRusinas
@AndrewRusinas - 30.09.2022 13:41

What if item height is dynamic?

Ответить