Loading Your React Data Like This is Awesome

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 มิ.ย. 2023
  • What if you want to display large amounts of data inside your React App? What if you don't know how much data there will be to display? If you're mapping over data, consider using infinite scrolling to load your data. This is the cleanest infinite scrolling/pagination approach I know of.
    My GitHub: github.com/joschan21
    Discord: / discord
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 147

  • @kH-ul4hk
    @kH-ul4hk ปีที่แล้ว +10

    I love the redoing of the code in the video! A smart way to make the concept quick (not having to type everything out) and also makes it so you have to edit less, nice!

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +7

      It's such a cool concept. Fireship made it very popular and it really is easy to follow as a viewer and leads to less errors during recording

  • @Winslow_Tech
    @Winslow_Tech ปีที่แล้ว +67

    Great work! After this, you can add virtualization with libraries like react-window or TanStack's "useVirtual" hook so that you don't run out of memory scrolling through hundreds of complex react components!
    I used this in a real-world medical application both for viewing large lists of data and inside a complex table I built on top of MaterialUI.
    A tricky part was keeping the height of the container dynamic and still able to virtualize properly with good UX so I ended up using a combination of react-virtualized-auto-sizer to measure the container then use it as the height and width for useVirtual() to virtualize, useInfiniteQuery() to fetch data every time we get close to the bottom of the container, and the native intersection observer api to calculate when the user was nearing the last few entries.
    Then I turned it all into a reusable table component where you can control all of these parameters with props. One of the more fun front-end components I built! Oh and I actually managed to make all of this work inside Internet Explorer 11 using a polyfill for intersection observer and probably quite a few other things I am forgetting (Yep, that's the medical industry for you)

    • @obettaaugustine3383
      @obettaaugustine3383 ปีที่แล้ว +1

      Wow, that great!

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +3

      Man that sounds so interesting. Thanks a lot for sharing this!

    • @MisouSup
      @MisouSup ปีที่แล้ว

      yeah I actually thought he would use react-virtual from tanstack. I am trying it on tables in this exact moment, looks promising

    • @kool-breez
      @kool-breez ปีที่แล้ว

      I did the same in the last few months. Although I didn't get around to the dynamic container height. Thanks for mentioning that library, I'll check it out :)

    • @abgnazmisyahirul1360
      @abgnazmisyahirul1360 11 หลายเดือนก่อน +2

      Can you share the code snippet if may😅

  • @vanovich4944
    @vanovich4944 ปีที่แล้ว +36

    Yo, the consistency of your video upload is impressive! One of the best youtube channels on the web out there.

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +3

      That's a very high praise man. Appreciate ya

  • @tomirodriguez7195
    @tomirodriguez7195 ปีที่แล้ว +8

    Excelent content Josh! :)
    One thing I like to do is to just render a span at the end of the posts, so that every time it appears on the screen, you call your fetch function.
    That way, you don't event have to bother with the last post.
    Keep with all this videos!

  • @DurgeshKr22
    @DurgeshKr22 ปีที่แล้ว

    man you popping our some great content lately. Keep up the good work

  • @kdiffin903
    @kdiffin903 ปีที่แล้ว

    thanks for the great content bro I cant stop watching every upload

  • @Arttturslv
    @Arttturslv 6 หลายเดือนก่อน

    Thanks! I was searching about infinity scrolling without knowing the name of it and I came across your video!

  • @albert21994
    @albert21994 ปีที่แล้ว

    this is way better then the implementation I'm using with tranners virtual lists. thank you josh for this consise and no bs helpful video!

  • @nirjoyhasanantor3149
    @nirjoyhasanantor3149 ปีที่แล้ว +1

    I needed this you uploaded in time

  • @keymoment
    @keymoment ปีที่แล้ว

    You deserve to reach 1m subscribers nice content bro . Keep it up as always, I’m impressed with your hard work and dedication to your channel ❤🕵️‍♀️👍🙏

  • @Luxcium
    @Luxcium ปีที่แล้ว

    The enthusiasm of this gentleman is out of bounds and this is so awesome 🤩 I love how he got the clean haircut just for us haha (probably not)… he is sharp, clever and straight to the point which makes it super addictive to watch those videos!!! 😊

  • @chasehelton5462
    @chasehelton5462 ปีที่แล้ว

    Loving your videos bro! Super helpful! Could you eventually make a video covering what software you use to record/edit videos and any tips you have on making videos? I would love to start building in public soon, and I think you do a great job!

  • @deathdefier45
    @deathdefier45 ปีที่แล้ว +1

    Love you man, this is exactly what I needed ❤

  • @neroptik7882
    @neroptik7882 ปีที่แล้ว +4

    Sincèrement : video à la fois très "smart" et tellement bien expliquée, il faut avoir autant de talent que d'intelligence pour offrir des connaissances aussi précieuses en seulement quelques minutes, merci à Josh !

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +3

      Je ne parle pas français mais je t'apprécie

  • @amershboul9107
    @amershboul9107 ปีที่แล้ว +2

    I can't get enough of watching your content ❤

  • @mathiasriissorensen6994
    @mathiasriissorensen6994 9 หลายเดือนก่อน

    This was very helpful. Thank you!

  • @andrescaro_16
    @andrescaro_16 ปีที่แล้ว

    This is really useful. I appreciate it a lot!!

  • @savit3r
    @savit3r ปีที่แล้ว

    It’s either TH-cam or you who are watching me because you always upload when I have a problem with my project; WHAT A CLUTCH, bless you man, keep it up.❤

  • @mortezarostami3287
    @mortezarostami3287 ปีที่แล้ว

    Great job! really useful content :)

  • @nicolasmoises2720
    @nicolasmoises2720 ปีที่แล้ว

    Real nice, dude.. thanks for the video. I’m brazilian and I love your vídeos.. greatness

  • @user-pc5xt3gc7z
    @user-pc5xt3gc7z ปีที่แล้ว

    Good video and clear presentation (as usual I notice in your video)😎 a few comments^
    1 there IS a sence to fetch #4 post before will be readen post #3 in order to make scrolling perfectly "seamles" without interuptions for fetching)
    2 that video as well as others of this kind 9and even ready to install scrolling components) are all coves infinity scrolling in one directions) But the really tricky task (which I had to solve for my own) when you want to do infinity scroll in both directions (for next and previous pages of data) together with direct jump to the particular page and next 10 /prev 10 button also
    so you need somehow plase the users vieport not at the first newly fetched page but at first+1 and do it yet smooth)

  • @keshavakumar9828
    @keshavakumar9828 ปีที่แล้ว

    I was actually looking up for a pagination Tut and you dropped one.
    Quick question RTKQ vs tanstack which one do you use often

  • @Noel_VI
    @Noel_VI 2 หลายเดือนก่อน

    in 8:19 how did you import using your keyboard the useRef hook ?
    I tried to play around with it but I couldn't get it to work, I'd love to know the keys for it.
    great video btw, keep it up !

  • @ayushjain7023
    @ayushjain7023 ปีที่แล้ว +1

    Great video also one can use react-intersection-observer for easy implementation for load more

  • @leonardojaques6586
    @leonardojaques6586 ปีที่แล้ว

    So I might be dumb but: when we do mantine/hooks, do I add the whole mantine "thing" or only that hook situation? For example can I use this and shadcn together? Or should I use only mantine if I use their hook?

  • @lorashine
    @lorashine 4 หลายเดือนก่อน

    Great! This deserves ten times more thumbs up. 👍👍👍👍👍👍👍👍👍👍

  • @codinginflow
    @codinginflow ปีที่แล้ว +7

    SWR has a similar hook called useSWRInfinite. However, it stops being useful once you want to let the user add or remove items from the list.

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +3

      Interesting. Not sure how react-query holds up to that use-case either

    • @fullstack_journey
      @fullstack_journey ปีที่แล้ว

      guess it's only useful for a serp page

  • @jwbonnett
    @jwbonnett ปีที่แล้ว +8

    I think UX is more important than a bit more strain, load the posts once a user has viewed a couple of posts before, this way the loading would apear seamless to the user.

    • @benjaoliva3383
      @benjaoliva3383 ปีที่แล้ว +2

      Move the ref to the post before the 2 last ones and you will get this effect

  • @rowinc1704
    @rowinc1704 ปีที่แล้ว

    will downloading the whole data at the beginning at once not affect performance, how it is cleaner than other approach like applending the array of data upon reaching the end of the page ?

  • @Shahzad12145
    @Shahzad12145 6 หลายเดือนก่อน

    Great Job👍👍

  • @flavkaa2017
    @flavkaa2017 ปีที่แล้ว

    This is beautiful technique!

  • @ralexand56
    @ralexand56 ปีที่แล้ว +1

    That's beautiful! Thanks.

  • @airixxxx
    @airixxxx ปีที่แล้ว

    Shouldn't pagination be implemented also in the backend? If not, how does React Query manage to get only certain elements and not the whole list.

  • @ExtraTurtle
    @ExtraTurtle 9 หลายเดือนก่อน

    how would I go on doing this the other way? I'm trying to make a chat app, so I want it to only fetch the 5 last messages, and then create new scroll above. instead of below.

  • @erassylzh5658
    @erassylzh5658 ปีที่แล้ว +2

    Please make video about how to manage permission on react side (show buttons, components, etc depending on role)

  • @faizanahmed9304
    @faizanahmed9304 ปีที่แล้ว +2

    Thank you Josh!

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +1

      Appreciate you being such a frequent commenter. Cheers man

    • @faizanahmed9304
      @faizanahmed9304 ปีที่แล้ว

      @@joshtriedcoding thanks man!

  • @John-Dennehy
    @John-Dennehy ปีที่แล้ว

    Great content as always. One question though; isn't it best practice to move mapped components into their own separate component?

    • @Shubham-yc6nz
      @Shubham-yc6nz ปีที่แล้ว

      It is. But for learning purpose simplicity might be he added together

  • @Mental-Maniac
    @Mental-Maniac ปีที่แล้ว

    will this work inside a section of an HTML card that is something like 500PX200px?

  • @anonymoussloth6687
    @anonymoussloth6687 ปีที่แล้ว

    I didn't understand why at 11:36 it has to go inside a useEffect? What would happen if it didn't?

  • @meijichocolate7540
    @meijichocolate7540 ปีที่แล้ว +1

    I was just thinking about doing an infinite scroll in a table using nextjs and was wondering how to do it. Can't believe the timing for this video. Thanks for the video and keep up the good work!
    Btw, if you are using nextjs13, is it better to fetch data this way with react-query or should I find a way to fetch the data using a server component and then pass it do another component to display it somehow?

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว

      What I do is fetch the first X posts on the server (so they are immediately rendered in the viewport) and fetch all additional as I show in this video. Works supremely well. Will also be part of the next long-form video :)

    • @meijichocolate7540
      @meijichocolate7540 ปีที่แล้ว

      @@joshtriedcoding Thats one of the approaches I had been considering. Thanks and I will be looking forward to the next video!

    • @Shubham-yc6nz
      @Shubham-yc6nz ปีที่แล้ว

      ​@@joshtriedcodingyeah this tutorial would be great 🎉🎉

  • @umargulzar2982
    @umargulzar2982 ปีที่แล้ว

    Nice man ❤❤ You are a good teacher ❤❤

  • @billyfigueroa1617
    @billyfigueroa1617 5 หลายเดือนก่อน

    Bro holdup. What plugin are you using to increment values when you duplicate a line lol
    Anybody know? That’s 🔥

  • @ngenchev1721
    @ngenchev1721 ปีที่แล้ว +3

    Nice transition between i === _posts.length to i === _posts.length - 1 :D
    It is very important to know that indexes starts from 0, and length is the total count not the last index value.

    • @saiyamjain5079
      @saiyamjain5079 6 หลายเดือนก่อน +1

      Thanks a lot. I was wondering why mine does not work, thanks a lot saved me hours.

  • @lickey8919
    @lickey8919 4 หลายเดือนก่อน

    Anyone have video recommendations for infinite scroll tutorial that only uses the intersection lib? Every video uses extra libs and hooks that just arent needed

  • @rajfekar4839
    @rajfekar4839 ปีที่แล้ว

    What is short key for copy past { id , title } with increasing manner like post 1, post2
    when I try it copy past , id 1 I'd 1, post 1 post1

  • @peter042
    @peter042 ปีที่แล้ว

    JOSHHH, HELP MEEE.
    Sry, so: how do I do this infinite query in upstash?

  • @ifindev
    @ifindev 6 หลายเดือนก่อน

    Thank you!!

  • @moeinmac
    @moeinmac 2 หลายเดือนก่อน

    you're great! thanks.

  • @Sahil-cb6im
    @Sahil-cb6im ปีที่แล้ว +1

    My code is not working? is there any repo available?

  • @matysw
    @matysw ปีที่แล้ว

    is this possible to do in react native?

  • @dileepa-mn2to
    @dileepa-mn2to ปีที่แล้ว

    Bro can you make a video about atomica structure of the next project, how the data passing and state handeling throught the atomic componenets, thank you

  • @Abhishek-fw7oo
    @Abhishek-fw7oo ปีที่แล้ว

    Don't you think its overkill to implement infinite scroll, we have two install two packages doesn't it increases the size of the application

  • @rockNbrain
    @rockNbrain ปีที่แล้ว +1

    hey, nice job Josh! great content here!!
    I would love to see an implementation of a pagination without '''use client' directive, is it possible to have it working only in server components using links?

    • @simarmalhotra7319
      @simarmalhotra7319 ปีที่แล้ว

      I think for pagination you NEED to use hooks which in only possible on the client side as per next13

    • @rockNbrain
      @rockNbrain ปีที่แล้ว

      @simarmalhotra7319 I was wondering if it is possible to do using link tags and changing only the inner layout with the data ?

    • @simarmalhotra7319
      @simarmalhotra7319 ปีที่แล้ว +1

      @@rockNbrain possibly i havent tried it myself but using hooks seems like th easier and more consistent opt

  • @saputrauta09
    @saputrauta09 8 หลายเดือนก่อน

    is this only exist in app router?

  • @rohitkharche7562
    @rohitkharche7562 ปีที่แล้ว

    Loved this one, now how will this be integrated with tanstack-table library to render out posts in the table ?

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +1

      Seems like tables are a big part of the conversation in these comments. I'll take it as a video suggestion

    • @rohitkharche7562
      @rohitkharche7562 ปีที่แล้ว

      @@joshtriedcoding Yes, thankyou for replying back. Will love if you cover this

  • @TheArmenianSolider65
    @TheArmenianSolider65 10 หลายเดือนก่อน

    I can't find this project on your github

  • @darkmift
    @darkmift ปีที่แล้ว +2

    Please link the code...makes it easier to review

  • @MrManafon
    @MrManafon ปีที่แล้ว +7

    Infinite scrolling is considered bad UX, bad for conversions, and not least, bad for SEO, keep that in mind when doing this.

    • @Munch_92
      @Munch_92 4 หลายเดือนก่อน +1

      I know this is the same as the carousel/slider argument.
      The issue is though, clients want, what clients want.
      Therefore when a client says I want to display all my posts on a page…..

    • @lickey8919
      @lickey8919 4 หลายเดือนก่อน +2

      Why is infinite scrolling bad ui? It's the same thing as sequential pagination?

    • @CGAR_420
      @CGAR_420 2 หลายเดือนก่อน

      ​@@lickey8919Because you can't link to the last page. You have to load everything if you want to get to the end
      So if your products are sorted A-Z with infinite loading and someone wants a Z product, they need to scroll through everything. Every time they come back

    • @lestibournesastalsi5466
      @lestibournesastalsi5466 2 หลายเดือนก่อน

      ​@@lickey8919Most of time contact info will be put in footer, with infinite scrolling user can never reach footer.

  • @gkkkk7507
    @gkkkk7507 ปีที่แล้ว

    where can i find the code?

  • @speedster784
    @speedster784 ปีที่แล้ว +1

    Can you make a video about uploading multiple files to s3 bucket using next js new API handlers with presigned url..

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +1

      Did that: th-cam.com/video/yu4KKmNFg2Y/w-d-xo.html I recommend creating these AWS policies yourself on the edge, makes for very quick response times compared to using the gigantic AWS SDK

  • @MrPogi-lf5gz
    @MrPogi-lf5gz ปีที่แล้ว

    Please share github link as well.

  • @yagelProject
    @yagelProject ปีที่แล้ว

    Very cool! Can you make the same video, only for next 13+ sanity? I can't find examples with infinite loading for sanity.

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +1

      I think making mostly the same video would not be very interesting. This approach isn't database/datalake specific at all, it just comes down (with sanity specifically) to how you query your data using their groq language

  • @harelpanker
    @harelpanker ปีที่แล้ว

    Hi Josh thank you, really nice... do you think it's SEO friendly?

    • @brain5853
      @brain5853 ปีที่แล้ว +1

      Well, if we're talking Next JS since just React definitely isn't SEO friendly... If the first batch of data is loaded server-side, that should be visible with SEO. But anything loaded in client afterwards isn't.

    • @Euquila
      @Euquila ปีที่แล้ว

      Do apps need to be SEO friendly beyond the marketing site? Perhaps this is an application the user sees only after they sign in.

    • @harelpanker
      @harelpanker ปีที่แล้ว

      ​@@Euquila I'm talking precisely about "applications" that need to be SEO friendly like marketing sites...

  • @rdx-3724
    @rdx-3724 ปีที่แล้ว +1

    Please make a playlist on
    Scalability and microservices
    Love from India ❤❤

  • @minocs
    @minocs 5 หลายเดือนก่อน

    Why not just conditionally set the ref on the div instead of returning a duplicate div with the ref?

  • @a7zz
    @a7zz ปีที่แล้ว +1

    Can't wait for the brave enough youtuber/someone on twitter to post an opinionated way to paginate using sever components & javascript 👀

  • @keshawnsmith320
    @keshawnsmith320 ปีที่แล้ว

    Are you running windows 10 or 11 because your taskbar layout has me soooo jealous.

    • @harag9
      @harag9 ปีที่แล้ว

      The icons in the middle on the taskbar is win 11

  • @adolfjamesurian6510
    @adolfjamesurian6510 ปีที่แล้ว

    what is the keyboard shortcut for that? 1:47?

    • @harag9
      @harag9 ปีที่แล้ว +2

      Since he already typed out the code and deleted them his shortcut is ctrl-z for UNDO

  • @shanuflash5773
    @shanuflash5773 ปีที่แล้ว +2

    Can you make a video on implementing redux with nextjs 13.4 and server components?

    • @user-te2pe5qm8o
      @user-te2pe5qm8o ปีที่แล้ว +1

      The Nextjs App router is a new feature that may not work seamlessly with state management tools like SWR, React Query, or Redux. It may take some time for these tools to fully align with the App router. To be safe, it's recommended to avoid using the App router with Redux in a real-world project and conduct thorough testing before implementing it.

    • @shanuflash5773
      @shanuflash5773 ปีที่แล้ว

      @@user-te2pe5qm8o so how do I state manage in next 13 app router

    • @user-te2pe5qm8o
      @user-te2pe5qm8o ปีที่แล้ว

      @@shanuflash5773 I am using Next App Router + Zustand + React Query, to be honest, the experience is very bad, there are many bugs, revalidation in fetch and queryClient can not take effect, I have to use router refresh, I use Hydrate to get the current user, but after logging in and waiting for refetch, the login button shows up directly making me have to refresh, I have no idea what's going on.
      Warm tip: 13.4.4 is buggy, I returned to 13.4.3

  • @lardosian
    @lardosian ปีที่แล้ว

    Ah I notice Bitchute does infinite scrolling now that you say it!

  • @Ali-rz6bn
    @Ali-rz6bn ปีที่แล้ว +1

    Goat

  • @real23lions
    @real23lions ปีที่แล้ว +1

    Does anyone know the easiest way to auto resize textarea in reactjs/ nextjs? I’m surprised that there isn’t a built-in solution for this. (Fyi I’m new and no idea where to find the solution)

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +1

      There is a perfect solution, it's called "React textarea autosize" lol

    • @real23lions
      @real23lions ปีที่แล้ว

      @@joshtriedcoding you're a GOAT. thanks for helping me as a new web dev for the past 3 months. i've learned a lot.

  • @Shubham-yc6nz
    @Shubham-yc6nz ปีที่แล้ว

    Awesome

  • @Happyday-nn6rh
    @Happyday-nn6rh ปีที่แล้ว

    you are awsome

  • @mohitcodeswell
    @mohitcodeswell ปีที่แล้ว

    Hey Josh, have your heard about UMI js. I'm being told you use UMI js. Do you have any idea. Please do tell me

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว

      Whoever told you that might not be a reliable source of information, never heard of it

    • @mohitcodeswell
      @mohitcodeswell ปีที่แล้ว

      @@joshtriedcodingit's documention is in Chinese and they are the same creators who made any design. Anyways I'm very depressed about its docs .

  • @AboIbrahem_DAA
    @AboIbrahem_DAA ปีที่แล้ว

    😢😢 hi if you know fix this problem in next@13.4.4 with next-auth => "
    ./node_modules/next-auth/next/middleware.js
    Module parse failed: Identifier 'NextResponse' has already been declared (3:6)
    | "use strict";
    | const NextResponse = require("next/dist/server/web/spec-extension/response").NextResponse;
    > const NextResponse = require("next/dist/server/web/spec-extension/response").NextResponse;
    | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
    | Object.defineProperty(exports, "__esModule", {
    "
    how I can fix it ??

  • @brayanjpm
    @brayanjpm ปีที่แล้ว

    Nice vid, bro how do u care your eyes , I say this because i was watching your videos and in all of these you don’t use glasses 👓, what is your “secret”

  • @anasouardini
    @anasouardini ปีที่แล้ว

    Funny enough, the eco-system of React is the only powerful part in react.
    Ctrl+C (React's eco-system) => Ctrl+V (Solidjs' eco-system) :).

  • @anonymousmangalorean
    @anonymousmangalorean ปีที่แล้ว

    Hey it's easier to use react-infinite-scroll-component

  • @alwaisy
    @alwaisy ปีที่แล้ว

    I came to know the purpose of the video in the last 3 minutes.

  • @nolvalir
    @nolvalir ปีที่แล้ว +1

    ayy p early to the vid love to see it

  • @shekhtausif2811
    @shekhtausif2811 ปีที่แล้ว

    Why cant make one project in react you have good understanding

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +1

      There is going to be a large project soon

  • @shayanalijalbani9894
    @shayanalijalbani9894 ปีที่แล้ว

    Can you make a video showing, for instance, how to implement that data fetching method in the SHADCN data table component? When we click the next page button, all the students in the subsequent class will be displayed in addition to the ones we are currently seeing. Keep in mind that there will be 50 to 70 students in each class. As soon as the user scrolls down, I want to collect the remaining students. I currently want to display 10 users.

  • @LarsRyeJeppesen
    @LarsRyeJeppesen ปีที่แล้ว

    You should change the channel name to "josh tried react"

  • @nomadshiba
    @nomadshiba ปีที่แล้ว

    dont trust pagination. if you start with the newest content, it becomes problematic when there are newer contents
    you should always use "after this id"

  • @div0ky
    @div0ky ปีที่แล้ว

    Isn’t Tanstack React Query just a wannabe SWR?

    • @joshtriedcoding
      @joshtriedcoding  ปีที่แล้ว +1

      It's an awesome standalone solution

    • @simonhartley9158
      @simonhartley9158 ปีที่แล้ว +1

      My understanding is that SWR tries to keep its bundle size small, while React Query has more features and control.

    • @div0ky
      @div0ky ปีที่แล้ว

      @@joshtriedcoding Fair enough, thanks for the reply. Really loving the channel, btw!

    • @div0ky
      @div0ky ปีที่แล้ว

      @@simonhartley9158 Makes sense. I've been using SWR in production extensively and had great results. I may try out React Query a bit.

  • @IncomingLegend
    @IncomingLegend 8 หลายเดือนก่อน +2

    there are tons of free APIs out there, why do you have to mock one? why not try to apply real world scenarios as much as possible? tutorials like this just seem cheap and lazy...

  • @niteshbabu5731
    @niteshbabu5731 4 หลายเดือนก่อน

    Shouldn't you be checking for index === _posts.length -1?

  • @olorunfemidaramola5470
    @olorunfemidaramola5470 ปีที่แล้ว

    Shouldn’t it not be if(I === _post.length) I’m confused a bit please

  • @yajirushik2871
    @yajirushik2871 ปีที่แล้ว

    I have started learning TS recently and decided to build app with it... who could think it will create a real hell for my already created infinite scroll functionality for jsx... anyway after 4 hours I haven't fixed that so I'm here 🫡