Understand How Data Flows Through SvelteKit

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

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

  • @JoyofCodeDev
    @JoyofCodeDev  Год назад +1

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

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

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

    • @JoyofCodeDev
      @JoyofCodeDev  11 месяцев назад +1

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

  • @noaudiochannel3131
    @noaudiochannel3131 Год назад +24

    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.

  • @simonnice9030
    @simonnice9030 Год назад +3

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

  • @kazagi
    @kazagi Год назад +2

    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

  • @Allformyequine
    @Allformyequine Год назад +3

    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 Год назад +1

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

  • @simonphumin
    @simonphumin 5 месяцев назад

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

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

    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.

  • @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?

  • @cowabunga2597
    @cowabunga2597 Год назад

    Whoever does your thumbnail give them a raise 😌 amazing

    • @JoyofCodeDev
      @JoyofCodeDev  Год назад

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

  • @BeepBloopNoop
    @BeepBloopNoop Год назад +4

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

  • @fleq6542
    @fleq6542 Год назад +2

    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!

  • @simbarashemaunga5575
    @simbarashemaunga5575 11 месяцев назад

    You are an amazing instructor, looking forward to more content

  • @nathanellis7819
    @nathanellis7819 Год назад

    You are a legend. Thank you

  • @rod5751
    @rod5751 Год назад

    Head spinning but very helpful - thanks!

  • @TheAabbccddee12345
    @TheAabbccddee12345 Год назад

    Thank you for this gem of a video.

  • @BryanKlein
    @BryanKlein Год назад

    Thank you for the clear and coherent explanation.

  • @danibri
    @danibri Год назад +1

    Very good video !! Continue like this 🔝🔝

  • @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

  • @00044441
    @00044441 Год назад

    well that was a clear lesson on how routes work thanks

  • @efimgibsun7969
    @efimgibsun7969 Год назад

    Thank you, this video is obviously great tutorial

  • @djordje_matic
    @djordje_matic Год назад

    Very good tutorial! Thanks

  • @rahulxcr
    @rahulxcr Год назад

    Thanks. This is very helpful.

  • @wild_rage
    @wild_rage Год назад

    Hvala matija!

  • @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.

  • @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.

    • @JoyofCodeDev
      @JoyofCodeDev  Год назад +1

      Yeah, I wanted to try it out! 😄

  • @argonjs
    @argonjs Год назад

    Awesome! 🔥

  • @jamiewalker1745
    @jamiewalker1745 Год назад

    Amazing.

  • @dheerajs2838
    @dheerajs2838 Год назад

    Thanks!

  • @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.

  • @paolo-e-basta
    @paolo-e-basta Год назад

    Thanks

  • @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: ruclips.net/video/8OmsVZuuQMc/видео.html.

  • @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.

  • @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.

  • @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! 😄

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

    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  7 месяцев назад

      I always use TypeScript.

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

      @@JoyofCodeDev I already converted! Tks

  • @WyzrdCat
    @WyzrdCat Год назад

    🔥💥⭐🌟⭐💥🔥

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

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

  • @eduardovega8851
    @eduardovega8851 Год назад

    I fucking love you

  • @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: ruclips.net/video/XNbCp7ZJi-8/видео.html.

  • @Lukehagar
    @Lukehagar Год назад +1

    First!
    :P
    @JoyofCodeDev I love your content