Sveltekit Data Fetching in 2024 Explained

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ก.ย. 2024

ความคิดเห็น • 12

  • @bmdavis419
    @bmdavis419  7 วันที่ผ่านมา +14

    Some important notes from th-cam.com/users/StanislavKhromov:
    - When using +page.ts to fetch from a public service you need to make it accessible both from the server (via Node.js fetch) and the client (by configuring CORS).
    - Load functions run concurrently unless you "await parent()", don't think it was mentioned but has a big implication on the available data
    - $effect is not equivalent to onMount, and onMount is not deprecated. If you do $effect and then untrack(..) everything inside it, it behaves like onMount. (because onMount never reruns)
    - There is no caching of fetch. If you use Kit fetch in a .server file, you will get the inlined response in the SSR as a JSON blob. If you use Kit fetch in universal load, you will get the inlined Response object from the fetch you called on the server, which dedupes it from running again when page loads the second time in the browser.

  • @thompson_ian
    @thompson_ian 7 วันที่ผ่านมา +12

    Could you do an in-depth video on error handling within svelte kit? Specifically using Supabase? This is one area I’m struggling to find great resources on

  • @AxelRock
    @AxelRock 7 วันที่ผ่านมา +4

    I knew all of this, but watched the video anyway, I just think it's so elegant and powerful, that I don't mind re-watching someone explaining it.

  • @yash7630
    @yash7630 5 วันที่ผ่านมา

    Would love that Hono video you mentioned

  • @paulclarke4099
    @paulclarke4099 7 วันที่ผ่านมา

    Please do a video like this covering the proper use of stores and the context API using the latest rune implementations that will ensure state is not intermingled when you have multiple independent users of an application accessing data server side. You even mentioned in one of your older videos that you where not handling this incorrectly. I nice clear guide to the proper/correct way to implement this functionality would be greatly appreciated 💯🙂👍

  • @aviorperetz6307
    @aviorperetz6307 7 วันที่ผ่านมา

    It seems the best and funniest ui framework on the planet

  • @DunckingTest
    @DunckingTest 7 วันที่ผ่านมา

    Hey, nice video. I have a video request if you don't mind, i would like you to do a video about all the libraries you use in your production svelte kit apps

  • @bossRODTV
    @bossRODTV 6 วันที่ผ่านมา

    Hey Ben, awesome video 🎉 I just wanted to ask what is the reason why do you need to have both page.ts and page.server.ts?

  • @rahulagarwal968
    @rahulagarwal968 6 วันที่ผ่านมา

    What are your views on Kotlin Multiplatform ? Should I learn Flutter or KMP

  • @prashlovessamosa
    @prashlovessamosa 7 วันที่ผ่านมา +1

    hey ben can you please make some sort of sveltikit crash course consist every major topic to build any web app.

  • @einl12345
    @einl12345 7 วันที่ผ่านมา

    Great, thanks! :)

  • @RowdyVerbeek
    @RowdyVerbeek 7 วันที่ผ่านมา

    Great Video!