Dynamic Routes & Slugs with Route Params

  Рет қаралды 22,761

Huntabyte

Huntabyte

Күн бұрын

Пікірлер: 87
@amerrashed6287
@amerrashed6287 Жыл бұрын
The first guy on KZbin explaining sveltekit better than the official docs ! Thanks a lot :)
@bmehder
@bmehder 2 жыл бұрын
I took about a year off from learning SvelteKit until all the changes settled. Everything feels much more straightforward now. Your videos are a great supplement to the SvelteKit docs.
@Huntabyte
@Huntabyte 2 жыл бұрын
I’m glad to hear that! Please let me know if there’s anything else you’d like to see me cover!
@deepertracks
@deepertracks 2 жыл бұрын
Exact same with me. Took about a year off from it and came back to a framework that is much more put together and easy to understand. And then Hunter's videos are the best I've seen by far! Thanks Hunter.
@husk1c
@husk1c Жыл бұрын
@@deepertracks reminds me a lot of php
@paundrakkkrishna3214
@paundrakkkrishna3214 2 жыл бұрын
Svelte is future of frontend and sveltekit is CMS, and the way u r teaching is the best BROTHER, love from India
@Huntabyte
@Huntabyte 2 жыл бұрын
Thanks for your kind words!
@devt.9712
@devt.9712 2 ай бұрын
Thank you soo much I've been frustrated for hours googling and asking AI your videos are much better, this video tought me a lot and In a simple manner God bless
@nobelrl8235
@nobelrl8235 Жыл бұрын
Svelte is my first frontend framework other than flask. I cant wait to binge all of your videos!
@xx__xx7199
@xx__xx7199 2 жыл бұрын
Thanks man, bring more content from sveltekit, it helps a lot, svelte is amazing
@Huntabyte
@Huntabyte 2 жыл бұрын
I agree! I will certainly do so!
@justgravitate
@justgravitate 2 жыл бұрын
Thanks this was very helpful, I was not able to find out how to do the updated dynamic routing until watching this video!
@Huntabyte
@Huntabyte 2 жыл бұрын
I'm glad to hear that this was helpful!
@it-s-me-mohit
@it-s-me-mohit 2 жыл бұрын
Awesome video. I love sveltekit. Hoping for you to create a whole series on it.
@Huntabyte
@Huntabyte 2 жыл бұрын
Thanks for the kind words! I have a few ideas in the works for that as we speak, which will take some time to complete. So in the meantime I'm focusing on smaller pieces to fill in some gaps.
@gtanmoy
@gtanmoy 2 жыл бұрын
Thank you for this excellent Sveltekit video series. I request you to please make a complete project with Sveltekit, TailwindCss UI components and Capacitor. Waiting for your videos.
@Huntabyte
@Huntabyte 2 жыл бұрын
I will definitely consider that, thank you!
@zzej
@zzej 2 жыл бұрын
thanks for not doing 15minutes of css/styling. straight to the important stuff :D
@libertad83y
@libertad83y 2 жыл бұрын
and no over complicated typescript...🤨
@mmkamalraj8931
@mmkamalraj8931 2 жыл бұрын
Awesome information on SvelteKit. Tutorial documentation for Svelte frontend was a breeze, but svelteKit document was difficult to understand. You have done a great job explaining the concepts. One suggestion. Include the local file import example.
@Huntabyte
@Huntabyte 2 жыл бұрын
Thank you! I am glad you found my explanations helpful!
@senseicodes
@senseicodes 2 жыл бұрын
Great video. How about a video of building a full blown API with Sveltekit
@Huntabyte
@Huntabyte 2 жыл бұрын
That's in the queue, I'm looking to cover a lot of the core concepts first so that video won't require as much detail, otherwise, it could be quite lengthy.
@senseicodes
@senseicodes 2 жыл бұрын
@@Huntabyte that's great, thanks mate.
@rafi_45
@rafi_45 Жыл бұрын
keep up man. thanks for the tutorial. very clear to understand.
@Huntabyte
@Huntabyte Жыл бұрын
You’re welcome!
@rodrigocornidez1917
@rodrigocornidez1917 Жыл бұрын
Very helpful, thanks for the tutorial!
@hemachandrang6284
@hemachandrang6284 2 жыл бұрын
Would love to see a video about Nested Layouts in SvelteKit. That one's a bit confusing
@Huntabyte
@Huntabyte 2 жыл бұрын
That’s actually on my list! I struggled with that in one of my own applications and finally figured it out after a lot of experimenting!
@johntierney3353
@johntierney3353 2 жыл бұрын
I still have not been able to replicate the old layout.reset which was deprecated.
@MarkJaquith
@MarkJaquith Жыл бұрын
@@johntierney3353 +layout@.svelte will break out of the layout nesting and reset you to the root.
@manishbarik2267
@manishbarik2267 Жыл бұрын
Subbed. Keep uploading regarding Svetelkit
@Huntabyte
@Huntabyte Жыл бұрын
Thank you! I certainly will!
@dthierno
@dthierno 2 жыл бұрын
Hello, love your videos! Keep up the great work! I was just wondering if you could do a tutorial on how to integrate Firebase with Sveltekit? There are not enough tutorials on it on KZbin, so it would be great if you could. Great job again!
@Huntabyte
@Huntabyte 2 жыл бұрын
I am certainly considering that!
@evanralphvale
@evanralphvale Жыл бұрын
I wish tons of subscriber man! youre the best!
@szabolcsjobbagy30
@szabolcsjobbagy30 2 жыл бұрын
If you are using these dynamic routes (e.g. [id] folder) and server side rendering, do you still deploy the app as Static Site on a hosting platform? Or as Web Service?
@Huntabyte
@Huntabyte 2 жыл бұрын
I personally do not deploy as a static site, however, you can certainly do so. I believe you want to check out the prerender or SSG sections of the docs and it should help you accomplish this!
@szabolcsjobbagy30
@szabolcsjobbagy30 2 жыл бұрын
@@Huntabyte Yes, I finally managed to do this, I tried deploying on "Render" hosting platform first, but that needs extra adapter settings, however, Svelte apps can be deployed on Vercel with zero configuration, by a few clicks from Github, so Vercel is my new hosting place! :)
@swyxTV
@swyxTV 2 жыл бұрын
Request: form actions!
@Huntabyte
@Huntabyte 2 жыл бұрын
I’m wrapping up recording for exactly this! Expect it very soon!
@zclin8056
@zclin8056 2 жыл бұрын
what tab tool are you using for chrome?
@Huntabyte
@Huntabyte 2 жыл бұрын
I'm not using Chrome, I'm using Microsoft Edge, which has the option for vertical tabs and tab groups!
@kuttarn
@kuttarn 2 жыл бұрын
Nice tutorial! What about tho making the page go 404 if the slug doesn't exist? so not any path works
@Huntabyte
@Huntabyte 2 жыл бұрын
Sure, you could certainly set that up!
@cookifymedia
@cookifymedia 2 жыл бұрын
Like your videos, great content. I am a big fan of svelte and sveltekit. Just joined your discord.
@Huntabyte
@Huntabyte 2 жыл бұрын
Thank you! It's still a new server and under construction, but feel free to message me there if you wish to chat!
@Karen783_
@Karen783_ 2 ай бұрын
thanks, you really helped me
@igihara2662
@igihara2662 10 ай бұрын
Hello @Huntabyte Can you tell for e.g. why you don't fetch single product on page.server page? And when should we user normal and server page for fetching data. Thanks
@RyszardKozlowski
@RyszardKozlowski 4 ай бұрын
👍haven't solved it yet, but it's a process :)
@adampatterson
@adampatterson Жыл бұрын
Thanks Hunter, like usual. Things change super quick. data-sveltekit-prefetch has changed to data-sveltekit-preload-data which I think is a silly name 😂 I was messing with TMDB and on my single movie page added the recommendations, and links those to a single movie. It seems like the data doesn't update when you are already on a single page. D o I need to clear the state somehow before reloading the page?
@adampatterson
@adampatterson Жыл бұрын
wow, odd. I added target="_self" and that worked.
@Huntabyte
@Huntabyte Жыл бұрын
Glad you could figure it out! I noticed the change, such a small one and thankfully they include it by default when using create svelte.
@janisbasisbasovsdev7147
@janisbasisbasovsdev7147 Жыл бұрын
What if you r on a dynamic route/segment and you have a aside with all links to other data in the same segment. the first data is displayed but when i navigate to another slug the data is fetched on server but the new data is not shown. Whats the best approach to update the page with the new data?
@joemurillo8872
@joemurillo8872 11 ай бұрын
use props and pass them over logically I believe there is other ways, as I am trying to figure out how to work with the SSR properly when fetching and passing
@Nisarsafi274
@Nisarsafi274 4 ай бұрын
In my project json doesn't have ID Can I use title or description or else? Please tell me
@twd2
@twd2 2 жыл бұрын
I hope that you specify a series for (PWA) in svelte kit with the new version of sveltekit
@SRG-Learn-Code
@SRG-Learn-Code 2 жыл бұрын
Great explanation
@Huntabyte
@Huntabyte 2 жыл бұрын
Thank you!
@Mexad0n
@Mexad0n 2 жыл бұрын
Thanks for great content 👍
@Huntabyte
@Huntabyte 2 жыл бұрын
Thank you!
@MattHeslington
@MattHeslington 2 жыл бұрын
Another excellent tutorial, cheers!
@Huntabyte
@Huntabyte 2 жыл бұрын
Thank you!
@ambig1
@ambig1 Жыл бұрын
SyntaxError: The requested module 'vite' does not provide an export named 'preprocessCSS'
@yazer79
@yazer79 Жыл бұрын
What if you are working on a big website with massive clean urls - not slug/id - amount like 100k?
@musafirfisabillah6566
@musafirfisabillah6566 2 жыл бұрын
this is a Amazing video Thanks alot !!!
@Huntabyte
@Huntabyte 2 жыл бұрын
You're welcome!
@swyxTV
@swyxTV 2 жыл бұрын
Yesssss keep it up hunter!
@Huntabyte
@Huntabyte 2 жыл бұрын
Will do! Thank you!
@meaningmean
@meaningmean 2 жыл бұрын
Love it! Thanks man
@Huntabyte
@Huntabyte 2 жыл бұрын
Thank you!
@amirshojaeeiawirshj
@amirshojaeeiawirshj Жыл бұрын
perfect.
@BhideSvelte
@BhideSvelte 10 ай бұрын
Thanks a lottt he helped a lottt
@bhavyapanchal8190
@bhavyapanchal8190 Жыл бұрын
Thanks Man
@jimmynlssn
@jimmynlssn 2 жыл бұрын
So so good!
@Huntabyte
@Huntabyte 2 жыл бұрын
Thanks for the kind words, Jimmy!
@pardonmasuka2
@pardonmasuka2 Жыл бұрын
Awesome!!!
@jooonmantv
@jooonmantv 7 ай бұрын
amazing
@ruslan5481
@ruslan5481 Жыл бұрын
👏👏👏
@rx0-rx
@rx0-rx Жыл бұрын
Don't like that the data is exposed on the source as data = (your json stuff here)
@WyzrdCat
@WyzrdCat Жыл бұрын
🐶♥
@dand4485
@dand4485 Жыл бұрын
Just curious. Say i have a site focused around location. The normal Url will be something like "http:/site/country/state/city". Want it to be convenient for my users, coming to "site" ("src/route/+page.js"), determine if any args were supplied or default them if need and off to "src/route[country]/[state]/[city] via a redirect which seems to work fine so far... The issue seems when a user pressed F5 (refersh page) i'll get "Page not found". Crazy part is if the user has navigated around within my site, have been using the browser history so going forward/back seems to work fine. I am using the BeforeNavigation and AfterNaviation, mainly to prevent a bad route might have been requested, and in the AfterNavigation will then populate the page. Also, using sveltekit I'd be happy if it works as a client only SPA, don't need SSR/SSG, just have it all run/update by client requests. Did try to generate a static site, am using: import adapter from '@sveltejs/adapter-static'; Trying to pre-generate the site, then i'll get errors about "Dynamic Routes found" can't generate site. Any suggestions? Reading other posts, seems you were asking about ideas for more posts? Couple might be to build, and deploy to different servers. I know getting my site was a joy. I'm hosting my site on my own machine running windoZe 10 via IIS for example. Would be glad to share/help if interested for this config...
@twd2
@twd2 2 жыл бұрын
love it,thanks
@oleksandr.brazhii
@oleksandr.brazhii Жыл бұрын
Thank you, friend, for these videos!
@Huntabyte
@Huntabyte Жыл бұрын
You're very welcome!
Form Actions Made Simple
29:04
Huntabyte
Рет қаралды 37 М.
SvelteKit Layouts Explained (Nested, Groups, Resets)
17:46
Huntabyte
Рет қаралды 22 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Protect SvelteKit Routes with Hooks
21:10
Huntabyte
Рет қаралды 60 М.
Svelte 5 Snippets: Revolutionizing UI Composition | Snippets Vs Slots
12:09
Fullstack Ninja Academy
Рет қаралды 2,1 М.
10X Your SvelteKit Developer Experience in VSCode
10:00
Huntabyte
Рет қаралды 39 М.
SvelteKit API Routes & Endpoints
18:59
Huntabyte
Рет қаралды 36 М.
Svelte 5's Secret Weapon: Classes + Context
18:14
Huntabyte
Рет қаралды 30 М.
The Anti Component Library
10:35
Huntabyte
Рет қаралды 48 М.
Svelte 5 is Bigger Than You Think
9:35
Ben Davis
Рет қаралды 26 М.
SvelteKit is my mistress
4:19
Fireship
Рет қаралды 428 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН