Тёмный

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

Theo - t3․gg
Подписаться 287 тыс.
Просмотров 96 тыс.
50% 1

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/router/v1
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 🙏

Наука

Опубликовано:

 

3 янв 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 169   
@alvesvaren
@alvesvaren 4 месяца назад
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 4 месяца назад
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 4 месяца назад
yea I think once the store comes up I can ditch redux for 100% tanner experience
@kdiffin903
@kdiffin903 4 месяца назад
exactly
@JEsterCW
@JEsterCW 3 месяца назад
@@csy897 You shouldn't use redux in first place, lmao
@gosnooky
@gosnooky 4 месяца назад
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 4 месяца назад
then Prime screams about how it's not written in Rust
@jatiquep5543
@jatiquep5543 4 месяца назад
And Josh tried coding would over hype it 😂😂😂
@dennydharmawan4820
@dennydharmawan4820 4 месяца назад
then web dev simplified would tell why josh tried coding made a mistake 😂
@dealloc
@dealloc 4 месяца назад
And then Ben Holmes reimplements it from scratch
@bohdanvinter6929
@bohdanvinter6929 4 месяца назад
such an incredible thread
@KevinVandyTech
@KevinVandyTech 4 месяца назад
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 4 месяца назад
Vue and Nuxt has had a typed router for a while now.
@kearneytaaffe7059
@kearneytaaffe7059 4 месяца назад
Vue is amazing. It get passed over so much it’s sad
@alanhoff89
@alanhoff89 4 месяца назад
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 😢
@cianmcnally4694
@cianmcnally4694 3 месяца назад
Facts
@amaury_permer
@amaury_permer 4 месяца назад
Oh man, I was looking for an angular-like routing for react and then this video pops in my recommendations, this is awesome
@jocdiazm
@jocdiazm 4 месяца назад
What a great video. After watching the og stream, holly editing Phase. Even changed the BGM of tanner's (cool) lauch promo.
@grimm_gen
@grimm_gen 4 месяца назад
React is becoming more and more its's own Rails framework😂🔥
@CodingPhase
@CodingPhase 4 месяца назад
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
@booi_mangang
@booi_mangang 4 месяца назад
the word, tanstack always brings joy to my ears
@ConnorMoody
@ConnorMoody 4 месяца назад
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 4 месяца назад
Underrated comment
@andrewjoslin2452
@andrewjoslin2452 4 месяца назад
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 :)
@JonathanRose24
@JonathanRose24 4 месяца назад
Anything tanstack is usually a great choice. Im excited for this!
@Eziekel666
@Eziekel666 4 месяца назад
There is a package that does this with nextjs named nextjs routes. It override the types of all Link and router methods to be typesafe.
@alekseykarpenko2681
@alekseykarpenko2681 4 месяца назад
I love how React is catching up to Vue now
@skapator
@skapator 4 месяца назад
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 :)
@UwU-dx5hu
@UwU-dx5hu 4 месяца назад
Tannet should get a noble price❤
@philheathslegalteam
@philheathslegalteam 4 месяца назад
With Vinxi now gaining serious traction, I think we’ll see a tanstack router Next alternative very very soon.
@fnfal113
@fnfal113 4 месяца назад
this is damn good, I better start using this on my pet projects
@noext7001
@noext7001 4 месяца назад
so its angular routing
@CodingThingsIRL
@CodingThingsIRL 4 месяца назад
imagine being so excited about this
@MoDrazzz
@MoDrazzz 4 месяца назад
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.
@danieljanjanocha7178
@danieljanjanocha7178 4 месяца назад
Do you think it could be added to create-t3-app as optional part?
@vinayak2450
@vinayak2450 4 месяца назад
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 4 месяца назад
100% this pretty much eliminates all the custom crap I had to build on top of React Router to accomplish this.
@flammea_
@flammea_ 4 месяца назад
I really don't like file system based routing for server components so this is very promising for me
@cole5981
@cole5981 4 месяца назад
This is dope. As much as people love to hate on codegen, I would die on the codegen hill. I've written a custom file-based type-safe router with Zod, Cloudflare Workers, and a boatload of generics. You could not pay me to do it again. I don't think the issue lies within the "TypeScript sees everything as a system" concept; it's trivial to overwrite types for a certain file route (if you're doing some form of file-based routing, custom or not). I think the issue likes within "who is going to write these types?" and DX. Codegen solves both of those issues. I'd love to find something like TanStack router that could be used in more generic JS projects.
@dealloc
@dealloc 4 месяца назад
I think the major downside of codegen is not the code generation itself, it's that each tool provides their own codegen rather than having some standard way to do it; like with LSP. Would be cool if you only had to install a single tool/plugin that every package can interface with to provide consistent experience in editor and CI, and provide immediate feedback.
@lukasmolcic5143
@lukasmolcic5143 4 месяца назад
This year I started using Orval to generate all the types and all the Tanstack Query services to work with my api, its so good, its ridicules, codegen is a perfectly legitimate tool for some use cases.
@helleye311
@helleye311 4 месяца назад
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.
@user-gv9tt5un9f
@user-gv9tt5un9f 4 месяца назад
it's So crazy. Thanks to tanner
@1ACorner
@1ACorner 4 месяца назад
lets abstract an already abstracted layer further; great idea.
@ninjazhu
@ninjazhu 2 месяца назад
RapidOS uses internal URL as well as its core system libraries and classes, URLs can of course have parameters and it has the ability to use JSON or normal URL parameters somewhat interchangeable, if you want to call it routing you can, but I would call it dynamically loading and calling the constructor of a component...which is file based, but there is nothing to stop you using the same file for multiple purposes if you want. One of our goals was to ensure minimum memory usage on the client and server because some android devices at the time only had 256mb RAM and that can host the server for up to 20 users with good performance, of course there is a client on such a server also. The biggest issue with React is that it doesn't allow dependency injection or mocking of itself, so if you want to replace react easily, you are screwed.
@filipmajetic1174
@filipmajetic1174 4 месяца назад
"or, god forbid, an admin panel" 😂
@yousafsabir7
@yousafsabir7 4 месяца назад
Now I wanna know if we still need Nextjs or not?
@NoahSteckley
@NoahSteckley 4 месяца назад
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
@Ivan-Bagrintsev
@Ivan-Bagrintsev 4 месяца назад
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 4 месяца назад
Hes aint a dev anymore, just an influencer.
@jackson159
@jackson159 4 месяца назад
Works this with next js good ?😊
@J1Jordy
@J1Jordy 4 месяца назад
Having used Django a lot, this feels fairly familiar
@WeareBalceris
@WeareBalceris 4 месяца назад
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
@Zagoorland
@Zagoorland 4 месяца назад
This can also work with NextJS?
@avinashdubey6503
@avinashdubey6503 4 месяца назад
I know this is a stupid question but can i use this in React-Native for mobile apps?
@t3dotgg
@t3dotgg 4 месяца назад
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 4 месяца назад
"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"
@TheJobCompany
@TheJobCompany 4 месяца назад
I'd actually want to hear the rant about query params 😭
@GU0TEA1031
@GU0TEA1031 4 месяца назад
Can you introduce how to use tanstack router with i18n for multiple languages for website
@dwolrdcojp
@dwolrdcojp 4 месяца назад
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.
@_modiX
@_modiX 4 месяца назад
Can you use it in React Native?
@jamesyeoman794
@jamesyeoman794 4 месяца назад
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 4 месяца назад
It's called Arc. It's currently Mac only but they are just releasing a Windows version this year.
@DavidMulderOne
@DavidMulderOne 4 месяца назад
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).
@GekoPoiss
@GekoPoiss 4 месяца назад
Haskell has had typesafe routers for a decade or more - glad to see it's catching on in other ecosystems too!
@kenonet
@kenonet 4 месяца назад
Hahahah😂
@stancobridge
@stancobridge 4 месяца назад
Can this work together with NextJS
@camilo5821
@camilo5821 4 месяца назад
tanner is a reptiloide 😆. is my god
@robertosaldana7844
@robertosaldana7844 4 месяца назад
sorry, what browser is being used? thank you
@igrschmidt
@igrschmidt 4 месяца назад
Arc
@CodingPhase
@CodingPhase 4 месяца назад
Seems cool I just wish people would stop doing file based routing I hated having files or folders named [id]
@knoraziel
@knoraziel 2 месяца назад
Tanstack Framework coming soon 👀
@realdiegor
@realdiegor 2 месяца назад
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.
@matthijszondervan7638
@matthijszondervan7638 4 месяца назад
This is my biggest problem with astro that you can make dead links very easy
@HBMoulvad
@HBMoulvad 4 месяца назад
React Navigation has typesafe routes with autocompletion :-)
@dealloc
@dealloc 4 месяца назад
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)
@jak3legacy
@jak3legacy 4 месяца назад
Starting to feel like we're only a few steps away from the TanStack ***FRAMEWORK***
@dimava3717
@dimava3717 4 месяца назад
Hopefully, in some years we'll be able to build on TanStack
@craigasketch
@craigasketch 4 месяца назад
It's like React is turning into Angular.
@trentbosnic
@trentbosnic 4 месяца назад
Except react isn’t a pile of shit
@vutruong4164
@vutruong4164 4 месяца назад
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 4 месяца назад
​@@vutruong4164 wait, is Angular router now typesafe?
@Burtannia
@Burtannia 4 месяца назад
But is it BLAZINGLY FAST?
@mrleblanc
@mrleblanc 4 месяца назад
Nuxt already does this
@filipelinharesplus
@filipelinharesplus 4 месяца назад
i cant wait to replace my router lib again
@StabilDEV
@StabilDEV 3 месяца назад
Can it be used without codegen?
@skeleton_craftGaming
@skeleton_craftGaming 4 месяца назад
I want to learn vue but have been using php so long I when I do come up with a server side project I struggle with not just doing it in php and am bad at dev in general [ i understand that you can't help me with that though] ...
@snake608
@snake608 4 месяца назад
I don't see the problem, you can use vue and PHP together; its actually rather easy with laravel!
@macarthy
@macarthy 4 месяца назад
Everyone is just rebuilding rails
@zenpool
@zenpool 4 месяца назад
so we're back to doing SPAs now? 😆/s
@rtorcato
@rtorcato 4 месяца назад
How does Tanner work on all this stuff and release it for free?
@agent_ly
@agent_ly 4 месяца назад
You should do an example of what you were talking about with interoping next and tanstack
@xelspeth
@xelspeth 4 месяца назад
I just want symfony style routing 😔
@rodgetech
@rodgetech 4 месяца назад
hmm very nice
@raijinhasarrived
@raijinhasarrived 4 месяца назад
Is dat juiciest Javascript drama?
@okopyl
@okopyl 3 месяца назад
Ia it Next.js?
@shafiq_ramli
@shafiq_ramli 4 месяца назад
What editor are you using Theo?
@GratuityMedia
@GratuityMedia 4 месяца назад
Final Cut
@shafiq_ramli
@shafiq_ramli 4 месяца назад
@@GratuityMedia I mean code editor
@arthurdias354
@arthurdias354 4 месяца назад
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
@najlepszyinformatyk1661
@najlepszyinformatyk1661 4 месяца назад
1:08 - you don't know about expo router :)
@harbar20
@harbar20 4 месяца назад
would love to hear more of your thoughts on remix
@badalism
@badalism 4 месяца назад
I like generouted.
@gro967
@gro967 4 месяца назад
Nuxt has all of this 😅
@thatsalot3577
@thatsalot3577 4 месяца назад
Wait aren't params and searchparams just strings ?
@thurston04
@thurston04 4 месяца назад
Pretty sure dioxus router has most of this
@bogdanb904
@bogdanb904 4 месяца назад
So ... basically, Angular's router sibling?
@27sosite73
@27sosite73 4 месяца назад
first nah 😍😍😍😍😍 will next.js have it own AI assistant in the future, Theo?
@_____case
@_____case 4 месяца назад
They arguably do: v0
@MichaelZimmermann
@MichaelZimmermann 3 месяца назад
I clicked because I thought this was about a network/internet router 😅
@bhavyajain638
@bhavyajain638 4 месяца назад
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?
@aarong2374
@aarong2374 4 месяца назад
at 18:44, "examples were ? based" What was said there? Unfamiliar with what he said.
@philipstray
@philipstray 4 месяца назад
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 4 месяца назад
@@philipstray Thank you so much! Very helpful!
@Nosleepguy
@Nosleepguy 4 месяца назад
Omg 😨
@oursbrun4243
@oursbrun4243 4 месяца назад
Ok; watching it makes me feels like angular is really the way to go to build spa apps.
@alexodan
@alexodan 4 месяца назад
"Since all your route definitions exist as files..."; Remix provides config based routing 🤨am I missing something here?
@usmansbk
@usmansbk 4 месяца назад
Bruh! You have to be an AI at this point. How do upload everyday
@MrMassaraksh
@MrMassaraksh 3 месяца назад
I hate UX with modern routing when page just swaps. Like in vercel website and other react stuff. It is so unfriendly IMHO
@jamesyeoman794
@jamesyeoman794 4 месяца назад
THAT MODULE DECLARATION FOR THE ROUTER!!!! WHAT!?!?!?! Why does tRPC not use that?!
@Danielo515
@Danielo515 4 месяца назад
File based routing is a toy made to make feel better the dumbest kids in the classroom.
@PHPLITHIUM
@PHPLITHIUM 4 месяца назад
Damn Tanner, nice router.... you single? 😉
@aizensoskue3880
@aizensoskue3880 4 месяца назад
like what they built a whole new framework
@akotochristopher9907
@akotochristopher9907 4 месяца назад
good morning Theo
@simpingsyndrome
@simpingsyndrome 4 месяца назад
It's a friday afternoon LOL
@27sosite73
@27sosite73 4 месяца назад
@@simpingsyndrome he is in EU
@RockRespawn
@RockRespawn 4 месяца назад
​@@simpingsyndromebro has not heard of timezones
@akotochristopher9907
@akotochristopher9907 4 месяца назад
space-time singularity@@simpingsyndrome
@akotochristopher9907
@akotochristopher9907 4 месяца назад
🤣🤣🤣🤣@@simpingsyndrome
@jak2k
@jak2k 4 месяца назад
Nuxt has something similar… It's just vue better.
@ShakhorSmith
@ShakhorSmith 4 месяца назад
vc companies get all this money to let a solo developer out do them
@rapzid3536
@rapzid3536 4 месяца назад
Remix is where React Router went to die. RIP begging them to add APIs necessary for auto tracing.
@MisterConscio
@MisterConscio 4 месяца назад
What's is the deal with type-safe router? I have no idea what is this trying to solve.
@magne6049
@magne6049 4 месяца назад
misspelling route urls and thus broken links
@MrZombastic
@MrZombastic 4 месяца назад
most average router. Except in frontend dev💀
@alastairtheduke
@alastairtheduke 4 месяца назад
The beginning and end of this video were great. The middle felt frantic and I could barely follow.
@anon_y_mousse
@anon_y_mousse 4 месяца назад
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.
@nevaknowmanamesame5089
@nevaknowmanamesame5089 4 месяца назад
This is monstruosity. React-Router is a mess, but this is no better. Vue has better, way simpler routing
@ConnorMoody
@ConnorMoody 4 месяца назад
Why are you posting videos at ungodly hours
@c7rsed118
@c7rsed118 4 месяца назад
I think "type-safe" router is solving non existing problem kinda thing and only over complicates stuff
@zapfska7390
@zapfska7390 4 месяца назад
Yes, but the autocomplete is cool
@oscarljimenez5717
@oscarljimenez5717 4 месяца назад
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 4 месяца назад
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 4 месяца назад
Solves as many problems as any other type safe feature solves - lots
@neociber24
@neociber24 4 месяца назад
Typesafety is a big problem, scalability, ease to refactor, onboarding new people, etc...
Далее
Cool Tools I’ve Been Using Lately
23:11
Просмотров 94 тыс.
We Need To Talk About Ternaries
19:09
Просмотров 78 тыс.
🎙Пою Вживую!
2:59:56
Просмотров 1,2 млн
Backstage or result?😈🔥 @milanaroller
00:12
Просмотров 7 млн
So You Think You Know Git - FOSDEM 2024
47:00
Просмотров 958 тыс.
React Server Components: A Comprehensive Breakdown
52:42
My Favorite State Manager Is...URLs?
6:29
Просмотров 68 тыс.
Dear Apple - The iPad needs help.
11:47
Просмотров 1,3 млн
The Most Hyped JavaScript Of 2023
33:18
Просмотров 78 тыс.
Is Tanstack Router Better Than React-Router?
18:00
Просмотров 31 тыс.
Oh no, I think I like this
6:58
Просмотров 127 тыс.