I Waited 3 Years For This Router. It STILL Blew My Mind.

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024
  • Man, Tanstack router is dope. Hyped for Tanner and everyone else who contributed. Can't wait to see where things go.
    ANNOUNCEMENT VID: / 1738709130213560497
    Docs: tanstack.com/r...
    Keywords REACT ROUTER TANSTACK REACT LOCATION REACT QUERY ROUTING URLS SEARCH PARAMS QUERY PARAMS LINKS
    Check out my Twitch, Twitter, Discord more at t3.gg
    S/O Ph4se0n3 for the awesome edit 🙏

Комментарии • 168

  • @alvesvaren
    @alvesvaren 8 месяцев назад +152

    Tanner is insane. I've used the alpha a lot of this project and found 3 bugs, all have been fixed within 12 hours from me reporting it :)

  • @jhondellandal560
    @jhondellandal560 8 месяцев назад +164

    This Tanner guy is literally Godsent for devs like me. 😂
    Thank you, Tanner for building things that makes web development much much more interesting and intuitive.

    • @csy897
      @csy897 8 месяцев назад +9

      yea I think once the store comes up I can ditch redux for 100% tanner experience

    • @kdiffin
      @kdiffin 8 месяцев назад

      exactly

    • @JEsterCW
      @JEsterCW 7 месяцев назад

      @@csy897 You shouldn't use redux in first place, lmao

  • @gosnooky
    @gosnooky 8 месяцев назад +113

    This looks really cool. Theo always seems to be the first to introduce stuff like this to me, then Jack Herrington does a tutorial - "How cool is that!?"

    • @samuelgunter
      @samuelgunter 8 месяцев назад +48

      then Prime screams about how it's not written in Rust

    • @jatiquep5543
      @jatiquep5543 8 месяцев назад +25

      And Josh tried coding would over hype it 😂😂😂

    • @dennydharmawan4820
      @dennydharmawan4820 8 месяцев назад +29

      then web dev simplified would tell why josh tried coding made a mistake 😂

    • @dealloc
      @dealloc 8 месяцев назад +11

      And then Ben Holmes reimplements it from scratch

    • @bohdanvinter6929
      @bohdanvinter6929 8 месяцев назад +4

      such an incredible thread

  • @KevinVandyTech
    @KevinVandyTech 8 месяцев назад +31

    TanStack Router 1.0 is so good that it feels like a mature 6.0. He really took his time to get it right before shipping it.

  • @QueeeeenZ
    @QueeeeenZ 8 месяцев назад +25

    Vue and Nuxt has had a typed router for a while now.

    • @kearneytaaffe7059
      @kearneytaaffe7059 7 месяцев назад +2

      Vue is amazing. It get passed over so much it’s sad

  • @amaury_permer
    @amaury_permer 8 месяцев назад +5

    Oh man, I was looking for an angular-like routing for react and then this video pops in my recommendations, this is awesome

  • @grimm_gen
    @grimm_gen 8 месяцев назад +14

    React is becoming more and more its's own Rails framework😂🔥

    • @CodingPhase
      @CodingPhase 8 месяцев назад +9

      Yep 😅 the funniest thing is seeing people react to query Params for the first time on twitter like this hasn’t been in web development for over 20 years

  • @alanhoff89
    @alanhoff89 8 месяцев назад +27

    Bro, (please don't kill me) but I feel like we're just going back and forth between folder spaghetti and code spaghetti.
    For example, I really don't understand how having a different debugging tool for every dependency in my project is a win... It's a freaking router! I don't want to have to debug my router, I just want it to freaking work 😢

  • @alekseykarpenko2681
    @alekseykarpenko2681 8 месяцев назад +5

    I love how React is catching up to Vue now

  • @noext7001
    @noext7001 8 месяцев назад +7

    so its angular routing

  • @Ivan-Bagrintsev
    @Ivan-Bagrintsev 8 месяцев назад +11

    You look like an iPhone user who's happy about that cool new iOS feature (that existed in android since the beginning of time). I believe Nuxt (Vue-based framework) has had typed router (and more of these features) for a couple of years now

    • @twitchizle
      @twitchizle 8 месяцев назад +5

      Hes aint a dev anymore, just an influencer.

  • @CodingThingsIRL
    @CodingThingsIRL 8 месяцев назад +2

    imagine being so excited about this

  • @vinayak2450
    @vinayak2450 8 месяцев назад +11

    I have tried it and its very useful.
    Now I dont need to create a CONSTANT map of URLs to type safe the redirect links.

    • @jonkoops
      @jonkoops 8 месяцев назад +5

      100% this pretty much eliminates all the custom crap I had to build on top of React Router to accomplish this.

  • @jocdiazm
    @jocdiazm 8 месяцев назад +1

    What a great video. After watching the og stream, holly editing Phase. Even changed the BGM of tanner's (cool) lauch promo.

  • @JonathanRose24
    @JonathanRose24 8 месяцев назад +4

    Anything tanstack is usually a great choice. Im excited for this!

  • @philheathslegalteam
    @philheathslegalteam 8 месяцев назад +2

    With Vinxi now gaining serious traction, I think we’ll see a tanstack router Next alternative very very soon.

  • @booi_mangang
    @booi_mangang 8 месяцев назад

    the word, tanstack always brings joy to my ears

  • @jak3legacy
    @jak3legacy 8 месяцев назад +3

    Starting to feel like we're only a few steps away from the TanStack ***FRAMEWORK***

    • @dimava3717
      @dimava3717 8 месяцев назад

      Hopefully, in some years we'll be able to build on TanStack

  • @filipelinharesplus
    @filipelinharesplus 8 месяцев назад +2

    i cant wait to replace my router lib again

  • @CodingPhase
    @CodingPhase 8 месяцев назад +1

    Seems cool I just wish people would stop doing file based routing I hated having files or folders named [id]

  • @MoDrazzz
    @MoDrazzz 8 месяцев назад +6

    How about you make a video presenting some features of react aria components? This library is just stunning, we no longer need downhshift and 30+ other libraries for all the types of inputs we use.

  • @skapator
    @skapator 8 месяцев назад +1

    This is all amazing stuff!!!! Well at least until v2 where half of it will be presented as wrong and something that had to re-write :)

  • @GekoPoiss
    @GekoPoiss 8 месяцев назад +4

    Haskell has had typesafe routers for a decade or more - glad to see it's catching on in other ecosystems too!

    • @kenonet
      @kenonet 8 месяцев назад +1

      Hahahah😂

  • @filipmajetic1174
    @filipmajetic1174 8 месяцев назад +1

    "or, god forbid, an admin panel" 😂

  • @TheJobCompany
    @TheJobCompany 8 месяцев назад +1

    I'd actually want to hear the rant about query params 😭

  • @macarthy
    @macarthy 8 месяцев назад +1

    Everyone is just rebuilding rails

  • @1ACorner
    @1ACorner 8 месяцев назад +5

    lets abstract an already abstracted layer further; great idea.

  • @craigasketch
    @craigasketch 8 месяцев назад +2

    It's like React is turning into Angular.

    • @trentbosnic
      @trentbosnic 8 месяцев назад +2

      Except react isn’t a pile of shit

    • @vutruong4164
      @vutruong4164 8 месяцев назад

      yeah, it is actually quite interesting to see that Angular router already has many of the same patterns being shown in this video. Still amazing work by Tanner, and there are things that Angular router can adopt like Suspense/Error boundary, etc

    • @neociber24
      @neociber24 8 месяцев назад

      ​@@vutruong4164 wait, is Angular router now typesafe?

  • @agent_ly
    @agent_ly 8 месяцев назад +3

    You should do an example of what you were talking about with interoping next and tanstack

  • @helleye311
    @helleye311 8 месяцев назад +1

    I've been waiting for this as well, ever since first hearing about this. Never thought about putting it into next as a [...] route, which is a great idea. I'll play with it at some point for sure.

  • @knoraziel
    @knoraziel 6 месяцев назад

    Tanstack Framework coming soon 👀

  • @realdiegor
    @realdiegor 6 месяцев назад

    I'm not sure about this at all. What if react router goes fully type-safe tomorrow because of the competence? Right after we all migrate to tanstack router? That doesn't make sense. There should be a huge overkill set of features that are really important to consider migrating.

  • @yousafsabir7
    @yousafsabir7 8 месяцев назад +2

    Now I wanna know if we still need Nextjs or not?

  • @ConnorMoody
    @ConnorMoody 8 месяцев назад +14

    I built a router on top of a router to add params and such to the Inertia router because the inertia link really just sucks. And then on top of that, I ABSOLUTELY hated doing breadcrumbs in complex systems where going back to and keeping context is just such a pain - so I simplified it so my links have a "backTo" which just takes a text prop. It stores it in the SPA's state, and then captures the link to the previous page automatically. If one is defined the breadcrumbs just work from wherever the user came from. If none is defined, it uses the breadcrumbs component's pre-defined back link and text. Easy way to solved a really complex problem.

    • @mrdavidrees
      @mrdavidrees 8 месяцев назад

      Underrated comment

    • @andrewjoslin2452
      @andrewjoslin2452 8 месяцев назад

      Tanstack router gives you a useMatches() hook that gives you the array of matched routes by descending hierarchy! Making it pretty easy to build breadcrumbs now :)

  • @J1Jordy
    @J1Jordy 8 месяцев назад

    Having used Django a lot, this feels fairly familiar

  • @TewodrosBirhanu-b3u
    @TewodrosBirhanu-b3u 8 месяцев назад

    it's So crazy. Thanks to tanner

  • @fnfal113
    @fnfal113 8 месяцев назад

    this is damn good, I better start using this on my pet projects

  • @MichaelZimmermann
    @MichaelZimmermann 7 месяцев назад

    I clicked because I thought this was about a network/internet router 😅

  • @mrleblanc
    @mrleblanc 8 месяцев назад +1

    Nuxt already does this

  • @oursbrun4243
    @oursbrun4243 8 месяцев назад +12

    Ok; watching it makes me feels like angular is really the way to go to build spa apps.

  • @zenpool
    @zenpool 8 месяцев назад +1

    so we're back to doing SPAs now? 😆/s

  • @danieljanjanocha7178
    @danieljanjanocha7178 8 месяцев назад +1

    Do you think it could be added to create-t3-app as optional part?

  • @flammea_
    @flammea_ 8 месяцев назад

    I really don't like file system based routing for server components so this is very promising for me

  • @NoahSteckley
    @NoahSteckley 8 месяцев назад

    I tried to hook this up at a slug within a nextJS project, and find a way to automatically look through links, without the autocomplete breaking. It did not go well

  • @matthijszondervan7638
    @matthijszondervan7638 8 месяцев назад

    This is my biggest problem with astro that you can make dead links very easy

  • @dwolrdcojp
    @dwolrdcojp 8 месяцев назад

    I LOVE LOVE LOVE tanstack table. We're using it for multiple purposes on our application. We have a pretty complex dashboard that is using searchParams from next based on all kinds of different filter drop downs. I would love to see you do a video on what you mentioned, implementing tanstack router in a next.js application for at least the complex dashboard use case. Thanks for doing a video on this.

  • @xelspeth
    @xelspeth 8 месяцев назад

    I just want symfony style routing 😔

  • @omri9325
    @omri9325 8 месяцев назад +6

    react-router is the worst routing library, and it only got worse and worse over the years and releases

  • @GU0TEA1031
    @GU0TEA1031 8 месяцев назад

    Can you introduce how to use tanstack router with i18n for multiple languages for website

  • @jamesyeoman794
    @jamesyeoman794 8 месяцев назад +1

    I've been wanting to know what the browser you use is for a while but I haven't seen you mention it in any videos (I could have ended up missing you casually mentioning it in a video but I _have_ tried to find it). Could you add an entry on your website's FAQ page with what browser you're using? If it's chromium-based, I'll still probably not use it, but I have friends that I think would love the UI/UX of that browser. I've also seen someone else ask about the browser in the comments here, so it's not just me who wants to know lol

    • @murtadha96
      @murtadha96 8 месяцев назад

      It's called Arc. It's currently Mac only but they are just releasing a Windows version this year.

    • @DavidMulderOne
      @DavidMulderOne 8 месяцев назад

      Arc browser from the Browser Company AFAIK, just on Mac. Definitely chromium based. They want to redesign what a browser means. Main thing they do is close your tabs unless you proactively mark them as 'should not discard'. Really want to try it out once it releases on other platform. Doubt I will actually end up using it, but trying it sounds nice. (As for just vertical tabs by themselves, out of the major browsers you can just right click on your tab bar in Edge to turn them on).

  • @MrZombastic
    @MrZombastic 8 месяцев назад +1

    most average router. Except in frontend dev💀

  • @thurston04
    @thurston04 8 месяцев назад

    Pretty sure dioxus router has most of this

  • @Burtannia
    @Burtannia 8 месяцев назад

    But is it BLAZINGLY FAST?

  • @jackson159
    @jackson159 8 месяцев назад

    Works this with next js good ?😊

  • @WeareBalceris
    @WeareBalceris 8 месяцев назад

    trying to implement it. stuck on the part where i need to make two modals (as routes) into children of the index component (the "/" route). code-based case is alright, i can do it. but the file-based - have no clue. in react-router its just nesting, but the file thing is not so clear.
    if somebody somehow has the answer - i would appreciate some help, thanks

  • @raijinhasarrived
    @raijinhasarrived 8 месяцев назад

    Is dat juiciest Javascript drama?

  • @okopyl
    @okopyl 7 месяцев назад

    Ia it Next.js?

  • @Danielo515
    @Danielo515 8 месяцев назад +1

    File based routing is a toy made to make feel better the dumbest kids in the classroom.

  • @HBMoulvad
    @HBMoulvad 8 месяцев назад

    React Navigation has typesafe routes with autocompletion :-)

    • @dealloc
      @dealloc 8 месяцев назад

      Yes, but not on the level of TanStack Router. It doesn't have type generation, which means you'll still need to manually define props to your route components. Although, Expo router could solve this with its tooling (and also based on React Navigation)

  • @gro967
    @gro967 8 месяцев назад

    Nuxt has all of this 😅

  • @MrMassaraksh
    @MrMassaraksh 7 месяцев назад

    I hate UX with modern routing when page just swaps. Like in vercel website and other react stuff. It is so unfriendly IMHO

  • @shafiq_ramli
    @shafiq_ramli 8 месяцев назад +2

    What editor are you using Theo?

  • @StabilDEV
    @StabilDEV 7 месяцев назад

    Can it be used without codegen?

  • @27sosite73
    @27sosite73 8 месяцев назад +1

    first nah 😍😍😍😍😍
    will next.js have it own AI assistant in the future, Theo?

    • @_____case
      @_____case 8 месяцев назад +3

      They arguably do: v0

  • @stancobridge
    @stancobridge 8 месяцев назад

    Can this work together with NextJS

  • @camilo5821
    @camilo5821 8 месяцев назад

    tanner is a reptiloide 😆. is my god

  • @harbar20
    @harbar20 8 месяцев назад +1

    would love to hear more of your thoughts on remix

  • @Zagoorland
    @Zagoorland 8 месяцев назад

    This can also work with NextJS?

  • @alexodan
    @alexodan 8 месяцев назад

    "Since all your route definitions exist as files..."; Remix provides config based routing 🤨am I missing something here?

  • @badalism
    @badalism 8 месяцев назад

    I like generouted.

  • @najlepszyinformatyk1661
    @najlepszyinformatyk1661 8 месяцев назад

    1:08 - you don't know about expo router :)

  • @rodgetech
    @rodgetech 8 месяцев назад

    hmm very nice

  • @anon_y_mousse
    @anon_y_mousse 8 месяцев назад

    I was hoping this would be about a hardware device to route traffic on a network, but I guess a thing for managing projects to ensure links are kept up to date is cool too. Of course, things like this make it even more difficult to get devs to abandon all the old tech to wipe the slate clean and start fresh. If only we could fix the flaws in the current tech without wiping everything away.

  • @usmansbk
    @usmansbk 8 месяцев назад

    Bruh! You have to be an AI at this point. How do upload everyday

  • @funhaos
    @funhaos 8 месяцев назад

    Damn Tanner, nice router.... you single? 😉

  • @avinashdubey6503
    @avinashdubey6503 8 месяцев назад

    I know this is a stupid question but can i use this in React-Native for mobile apps?

    • @t3dotgg
      @t3dotgg  8 месяцев назад

      Not a dumb question at all! At the moment, it's very tied to the url and browser specific behaviors, but I could see React Native compatibility through adapters in the future

    • @bohdanvinter6929
      @bohdanvinter6929 8 месяцев назад

      "Memory Routing" in TanStack Router docs looks promising: "Memory routing is useful in environments that are not a browser or when you do not want components to interact with the URL"

  • @robertosaldana7844
    @robertosaldana7844 8 месяцев назад

    sorry, what browser is being used? thank you

  • @jak2k
    @jak2k 8 месяцев назад +1

    Nuxt has something similar… It's just vue better.

  • @ShakhorSmith
    @ShakhorSmith 8 месяцев назад

    vc companies get all this money to let a solo developer out do them

  • @thatsalot3577
    @thatsalot3577 8 месяцев назад +1

    Wait aren't params and searchparams just strings ?

  • @arthurdias354
    @arthurdias354 8 месяцев назад

    I mean, this is awesome, but just so you know expo has the same link functionality* (route name autocomplete & typesafe params) but for React-Native obviously

  • @aarong2374
    @aarong2374 8 месяцев назад

    at 18:44, "examples were ? based" What was said there? Unfamiliar with what he said.

    • @philipstray
      @philipstray 8 месяцев назад +2

      All the examples were Vite based. Next js and Vite are somewhat similar in what they do but Vite works with Astro, Vue and other frameworks in addition to React. It was created by Evan You that also made Vue :)

    • @aarong2374
      @aarong2374 8 месяцев назад

      @@philipstray Thank you so much! Very helpful!

  • @CubicoOriginal
    @CubicoOriginal 8 месяцев назад +1

    Nice copy of Angular routing

  • @jamesyeoman794
    @jamesyeoman794 8 месяцев назад

    THAT MODULE DECLARATION FOR THE ROUTER!!!! WHAT!?!?!?! Why does tRPC not use that?!

  • @alastairtheduke
    @alastairtheduke 8 месяцев назад +1

    The beginning and end of this video were great. The middle felt frantic and I could barely follow.

  • @Nosleepguy
    @Nosleepguy 8 месяцев назад

    Omg 😨

  • @aizensoskue3880
    @aizensoskue3880 8 месяцев назад

    like what they built a whole new framework

  • @snake608
    @snake608 8 месяцев назад +1

    hear me out.. PHP for routing.

  • @nevaknowmanamesame5089
    @nevaknowmanamesame5089 8 месяцев назад +3

    This is monstruosity. React-Router is a mess, but this is no better. Vue has better, way simpler routing

  • @bhavyajain638
    @bhavyajain638 8 месяцев назад

    I'm a college student and at this point, I'm a pretty good web developer, but i am just using these tools.. i wanna know what it'll take to get there and build such tools? Ten's of years of experience?

  • @akotochristopher9907
    @akotochristopher9907 8 месяцев назад +1

    good morning Theo

    • @simpingsyndrome
      @simpingsyndrome 8 месяцев назад +2

      It's a friday afternoon LOL

    • @27sosite73
      @27sosite73 8 месяцев назад

      @@simpingsyndrome he is in EU

    • @RockRespawn
      @RockRespawn 8 месяцев назад +5

      ​@@simpingsyndromebro has not heard of timezones

    • @akotochristopher9907
      @akotochristopher9907 8 месяцев назад

      space-time singularity@@simpingsyndrome

    • @akotochristopher9907
      @akotochristopher9907 8 месяцев назад

      🤣🤣🤣🤣@@simpingsyndrome

  • @MisterConscio
    @MisterConscio 8 месяцев назад +1

    What's is the deal with type-safe router? I have no idea what is this trying to solve.

    • @magne6049
      @magne6049 8 месяцев назад +1

      misspelling route urls and thus broken links

  • @yemirhan
    @yemirhan 8 месяцев назад +1

    At first I was like, meh, react router is ok enough. But when the self fixing stuff happened in 5:45 I was like WHAT?

  • @meowmix0008
    @meowmix0008 8 месяцев назад +3

    Fifth

  • @szeredaiakos
    @szeredaiakos 3 месяца назад

    Why wait for 3 years on some code? Are you a chef at a restaurant or a software engineer?
    It takes a couple of days for a project specific router and maybe about a week or two for a general purpose router with all the basic features of tanstack router.
    Or, it is just not that important and you used the title for clicks... It's fine either way, but it obfuscates your position on the subject.

  • @MehranGhamaty
    @MehranGhamaty 8 месяцев назад

    Ummm modern routers are just forwarding bits of HTML.... that's portions of the HTTP standard, if you are using a browser there's no way around that.

  • @LilPozzer
    @LilPozzer 8 месяцев назад

    реакт говно лол

  • @divinenii
    @divinenii 8 месяцев назад

    First here

  • @JulianColeman03
    @JulianColeman03 8 месяцев назад

    Tanner is a machine. Love @tanstack/react-router

  • @fghdfghdfgghdstwesdfjtykjyfgk
    @fghdfghdfgghdstwesdfjtykjyfgk 8 месяцев назад +55

    I think "type-safe" router is solving non existing problem kinda thing and only over complicates stuff

    • @zapfska7390
      @zapfska7390 8 месяцев назад +6

      Yes, but the autocomplete is cool

    • @oscarljimenez5717
      @oscarljimenez5717 8 месяцев назад +14

      They're problems. Tanner work on a app that need a lot of query params, and he need to keep track of all of them all the time, making typesafe query params he ensure that he or u clients never use a query param wrong.

    • @rli09
      @rli09 8 месяцев назад +25

      certain problems only come to you at certain scales. Having a dev team of 500 engineers of various dev skills maintaining a single repo is another story.
      sure, you can educate the engineers and help them grow, but dev velocity = time, and time = money. so having a type-safe routing solution sets up the lower boundary and guardrails the outcome

    • @NoahSteckley
      @NoahSteckley 8 месяцев назад +7

      Solves as many problems as any other type safe feature solves - lots

    • @neociber24
      @neociber24 8 месяцев назад +4

      Typesafety is a big problem, scalability, ease to refactor, onboarding new people, etc...