TanStack Router is my favourite React Router -- TanStack Router Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

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

  • @isvene
    @isvene 10 หลายเดือนก่อน +1

    Straightforward, informative, and clear. This is very helpful. Thank you!

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

    Great video, thank you for the clear explanation and demonstration of the features, specifically the loader part where you also included tanstack query as the external data library.

  • @NiteshUpadhayay-tf7ks
    @NiteshUpadhayay-tf7ks 9 หลายเดือนก่อน +2

    i searched a lot the way of layout finally i got it 💕

  • @Donchandu_667
    @Donchandu_667 11 หลายเดือนก่อน

    nice bro we want more on this tanstack router from beginer to advanced very nice keep it up

    • @AtharvaDeosthale
      @AtharvaDeosthale  11 หลายเดือนก่อน

      Sure 👍

    • @Donchandu_667
      @Donchandu_667 11 หลายเดือนก่อน

      @@AtharvaDeosthale when you will upload new vidio on tanstack router

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

    Really good tutorial, keep it up!

  • @nothotdog5
    @nothotdog5 11 หลายเดือนก่อน

    Very useful, thank you!

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

    Good video. thank you 💐

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

    Thank you so much !!

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

    Very usefull fir me thanks

  • @anuj7286
    @anuj7286 11 หลายเดือนก่อน

    Thanks, bro you helped me a lot. I was stuck at file configuration. I have a question does React Route work without React typescript?

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

      TanStack router SHOULD work with JavaScript I think. I have only tried with TypeScript. But yeah if you use JS, you wont get the type-safety features.

    • @anuj7286
      @anuj7286 11 หลายเดือนก่อน

      @@AtharvaDeosthale Got it, Thank you

  • @starlord7526
    @starlord7526 11 หลายเดือนก่อน

    why use this instead of NextJS routing behavior(page router)?

    • @AtharvaDeosthale
      @AtharvaDeosthale  11 หลายเดือนก่อน

      Some people simply don't prefer Next.js for their own reasons. TanStack router can help you bring file based routing to Vite

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

      It gives very robust state management in url, which is how nextjs prefers it but does not have that in the router itself

  • @nothotdog5
    @nothotdog5 11 หลายเดือนก่อน

    I think there is a redundancy with your QueryClient - since you are wrapping everything at the top level, I don't think you also need to configure a context. Maybe I am wrong?

    • @nothotdog5
      @nothotdog5 11 หลายเดือนก่อน

      Nvm, I see that the context is needed specifically for the router, not for TS Query

    • @AtharvaDeosthale
      @AtharvaDeosthale  11 หลายเดือนก่อน

      The advantage I could think of is you could pull in the queryClient in other files and do stuff with it. The docs do suggest to use the queryClient. Not really sure if entire thing would work without one though. I’d def not remove it tbh. But yes, interesting and would love to dig deeper about this

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

      @@AtharvaDeosthale I could be wrong, but is this where useQueryClient comes in handy? It will simply return the current queryClient instead of instantiate a new one for each route.

    • @AtharvaDeosthale
      @AtharvaDeosthale  8 หลายเดือนก่อน +1

      The problem there would be that hooks cannot be used on server components

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

      @@AtharvaDeosthale You are absolutely right, and the way you did it is NOT creating a new instance of the query client each time. I was too fast ;)

  • @harharmahadev3115
    @harharmahadev3115 11 หลายเดือนก่อน

    Bring a brand vedio on trpc, monorepo, turborepo 😅

    • @AtharvaDeosthale
      @AtharvaDeosthale  11 หลายเดือนก่อน

      I have individual videos on them. Do you want me to create a project using all of them together?

    • @harharmahadev3115
      @harharmahadev3115 11 หลายเดือนก่อน

      👍yes

  • @daniel64147
    @daniel64147 11 หลายเดือนก่อน +1

    Good video but lacks Authentication Routes tutorial

    • @AtharvaDeosthale
      @AtharvaDeosthale  11 หลายเดือนก่อน +1

      Would love to cover it in some tutorial

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

    Great work!
    I just realize that instead of using `_layout.tsx`, we can use `_layout/route.tsx` as well. I prefer that because it feels much cleaner. 👾
    Thank you!