Understand How Data Flows Through SvelteKit

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 78

  • @JoyofCodeDev
    @JoyofCodeDev  Рік тому +1

    🔴 Patreon: www.patreon.com/joyofcode
    💬 Discord: joyofcode.xyz/invite

  • @noaudiochannel3131
    @noaudiochannel3131 Рік тому +25

    The amount of value in your content is crazy. It feels like I am always learning something new in these videos. Keep these videos coming.

  • @SaidElnaffar
    @SaidElnaffar Рік тому +9

    This is a GEM video -- each second in this video counts!!!! It should be part of the official documenation of SvelteKit!

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому +1

      I hope they include something like this in the SvelteKit docs one day.

  • @kazagi
    @kazagi Рік тому +3

    i spend a tons of time to find how the data flow is but i dont understand that clearly and bommm u made it in 25mins . Thank u

  • @simonnice9030
    @simonnice9030 Рік тому +4

    I love Svelte and Sveltekit. I work with it daily and I can't imagine a stack without it.

  • @Allformyequine
    @Allformyequine Рік тому +4

    I love you are reviewing things that confuse or trip people up when developing with SvelteKit!! You rock! Keep them coming!

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому +3

      Thank you! I always look at what people are asking and have trouble understanding.

    • @Allformyequine
      @Allformyequine Рік тому

      @@JoyofCodeDev ​ @Joy of Code That's so great and why I'm a Patreon ! Appreciate it!

  • @funnynews341
    @funnynews341 Рік тому +2

    The heart of sveltekit in this video, SPA and SSR all here, thank you so much!

  • @marcosissler
    @marcosissler 9 місяців тому

    Amazing content. I was working with Svelte and now it's like a new a refresh. I finally understand how data works and pass throw the layers. Love Svelte even more. You can construct applications really fast. Simple ones.

  • @simonphumin
    @simonphumin 7 місяців тому

    Thank you so much for this video. Especially the explanation what every file does is sooo crucial to understand when getting into Svelte & SvelteKit.

  • @fleq6542
    @fleq6542 Рік тому +3

    This is my favorite video so far for sure. I tested this myself to learn, because understanding this is essential imo to develop properly. Helped me clear up a lot of doubts I still had. Thank you!

  • @rickhoro
    @rickhoro Рік тому +6

    Brilliant presentation of data flow in svelte. I have trouble with your videos because you move so fast, lol! I have to run them at .75X speed, but I will use this as a reference if I have to review this in the future. Thank you for doing this and providing the code so we can play with it ourselves.

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому +1

      I'm trying to not make it super long. 😂

    • @rickhoro
      @rickhoro Рік тому +3

      @@JoyofCodeDev Don't worry about the length. Whatever length is necessary to explain what you have to explain is just fine with me. Slow down, take your time. 😊

    • @EgorDemeshko
      @EgorDemeshko Рік тому

      don't get it in getting info in parent layout. too fast. nevertheless great info and video

    • @EgorDemeshko
      @EgorDemeshko Рік тому

      and i have a question. at start we see flow looks like hooks => layout.server => layout => page.ts but on chapter data passed through routes we see hooks => layout.server => page.server => page => layout.ts
      so layout universal load file goes last before svelte files. why ordered changed?

  • @00044441
    @00044441 Рік тому

    well that was a clear lesson on how routes work thanks

  • @BeepBloopNoop
    @BeepBloopNoop Рік тому +4

    Great content as usual! Laying it out in digestible formats AND an article to read for more review. Premium stuff here!

  • @simbarashemaunga5575
    @simbarashemaunga5575 Рік тому

    You are an amazing instructor, looking forward to more content

  • @jesuslopez3306
    @jesuslopez3306 Місяць тому

    Best tutorial on svelte ever!

  • @RodrigoDAgostino
    @RodrigoDAgostino Рік тому +2

    I’m honestly really grateful to you for all the effort you put in your content. It’s amazing how you find ways to put complicated things in very simple terms and illustrate them in a very friendly way :) Just don’t rush so much! xD

  • @danibri
    @danibri Рік тому +1

    Very good video !! Continue like this 🔝🔝

  • @BryanKlein
    @BryanKlein Рік тому

    Thank you for the clear and coherent explanation.

  • @NotAllHeroesWearCapes-101
    @NotAllHeroesWearCapes-101 Рік тому

    Thanks!

  • @TheAabbccddee12345
    @TheAabbccddee12345 Рік тому

    Thank you for this gem of a video.

  • @efimgibsun7969
    @efimgibsun7969 Рік тому

    Thank you, this video is obviously great tutorial

  • @nathanellis7819
    @nathanellis7819 Рік тому

    You are a legend. Thank you

  • @djordje_matic
    @djordje_matic Рік тому

    Very good tutorial! Thanks

  • @cowabunga2597
    @cowabunga2597 Рік тому

    Whoever does your thumbnail give them a raise 😌 amazing

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      I'm using AI generated art because I love the colors! 😄

  • @rahulxcr
    @rahulxcr Рік тому

    Thanks. This is very helpful.

  • @wild_rage
    @wild_rage Рік тому

    Hvala matija!

  • @rod5751
    @rod5751 Рік тому

    Head spinning but very helpful - thanks!

  • @paolo-e-basta
    @paolo-e-basta Рік тому

    Thanks

  • @argonjs
    @argonjs Рік тому

    Awesome! 🔥

  • @redumptious2544
    @redumptious2544 Рік тому

    Wow. Another great video honestly!!
    Do you have that excalidraw canvas exported somewhere. I feel like it would be a nice cheat sheet for newcomers.

  • @AakashGoplani
    @AakashGoplani Рік тому +1

    I am still finding it hard to understand role of +[file].server.ts and +[file].ts (where file -> page / layout).
    +[file].server.ts => executes codes on server side which means if I have any logic that I want to server-side render, I'll pick this file. This much is clear to me.
    +[file].ts => executes code on both server and client. I don't understand purpose of this file. If I want certain piece of logic to execute on server, I will use +[file].server.ts & if I want that logic to execute on client side, I could use any of svelte life-cycle hook. This would save me from repeatedly checking if (browser) { .. }
    Can anyone help me clear this thought process.

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      It helps if you think more about where you want to run the load function.
      You might only be able to get some data from the server (using a secret) but you might want to do something else in the browser in which case you can pass the data from `+page|layout.server.ts` to `+page|layout.ts`.
      I have a lot of examples in my page versus standalone endpoints video: ua-cam.com/video/8OmsVZuuQMc/v-deo.html.

  • @omomer3506
    @omomer3506 Рік тому

    So what about if you are doing a get request inside your svelte component, is it the very last thing thst will run?

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      Right. You would see a loading indicator as you fetch the data before you can show it.

  • @johntierney3353
    @johntierney3353 Рік тому

    At 1:11 you talk about getting user preferences from 'local storage'. Is this 'local storage', the sveltekit 'local storage', or is this the Web Sorage API( window.localStorage ) which provides access to a Storage object.

  • @onepointproduction9092
    @onepointproduction9092 Рік тому

    Superbbbbb content

  • @suvrotica
    @suvrotica Рік тому +1

    Love your stuff. Did you see vercel has new storage option. Could you make a video on that.

  • @marcosissler
    @marcosissler 9 місяців тому

    Hey @JoyofCode! I have a new project in Svelte that is still in V1.0 and new, not so big. Do you think is a good practice to use TS in the project? I am not using at this moment. But as the project get bigger, I can see now, maybe is a good one to change it to TS use.

    • @JoyofCodeDev
      @JoyofCodeDev  9 місяців тому

      I always use TypeScript.

    • @marcosissler
      @marcosissler 9 місяців тому

      @@JoyofCodeDev I already converted! Tks

  • @Huntabyte
    @Huntabyte Рік тому +3

    2nd!

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому +2

      hi

    • @Huntabyte
      @Huntabyte Рік тому +3

      @@JoyofCodeDev Just finished watching, great video man! Loved the way this was presented and visualized 🚀🔥

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому +1

      @@Huntabyte Thank you! 😄

  • @jamiewalker1745
    @jamiewalker1745 Рік тому

    Amazing.

  • @Nukhtarov
    @Nukhtarov Рік тому

    Thank you! Can you please make a video of the superforms components?

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      Yeah! 😄

    • @Nukhtarov
      @Nukhtarov Рік тому

      @@JoyofCodeDev Just so there is no misunderstanding, on their website it is Other topics > Componentization >Forms and fields in components. Thank you, i love your videos.

  • @alrojohnmercado4199
    @alrojohnmercado4199 10 місяців тому

    Can you please do the Prisma Postgresql and supabase storage to image upload and fetching

  • @WyzrdCat
    @WyzrdCat Рік тому

    🔥💥⭐🌟⭐💥🔥

  • @phoneywheeze
    @phoneywheeze Рік тому

    still didnt understand use:enhance. Maybe a comparison video that illustrates with and without use:enhance would help!

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      I have an entire video on working with forms: ua-cam.com/video/XNbCp7ZJi-8/v-deo.html.

  • @eduardovega8851
    @eduardovega8851 Рік тому

    I fucking love you

  • @Lukehagar
    @Lukehagar Рік тому +1

    First!
    :P
    @JoyofCodeDev I love your content