‹ BackHN Continuity

Thread

SvelteKit 3

408 points · 179 comments · sampsn

  1. sharktheone · · focus · HN ↗
    Still waiting for remote functions to become ready :/
    1. pampas · · focus · HN ↗
      I've had no problem using them in 2.x
    2. cassepipe · · focus · HN ↗
      What was used instead before ?
      1. chrysoprace · · focus · HN ↗
        The idiomatic way to do data fetching in stable SvelteKit is via load functions.[0]

        They still do a good job and allow you to cache the results and invalidate that cache, but they are at a route/layout level rather than at a component level, which is what remote functions solve.

        [0] <a href="https:&#x2F;&#x2F;svelte.dev&#x2F;docs&#x2F;kit&#x2F;load" rel="nofollow">https:&#x2F;&#x2F;svelte.dev&#x2F;docs&#x2F;kit&#x2F;load

    3. chrysoprace · · focus · HN ↗
      They&#x27;re effectively ready to use even if experimental; the migration path is typically pretty painless when features are stabilised and the codemods get you most of the way. There&#x27;s a couple of missing features for them but if you don&#x27;t need those then it&#x27;s not a problem.
    4. nlh · · focus · HN ↗
      I&#x27;ve been using them in production for several months and zero issues. A few small workarounds here and there but otherwise they&#x27;ve been great.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.