Svelte 5: What's New by Simon Holthausen

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

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

  • @roblesrt
    @roblesrt 10 หลายเดือนก่อน

    Please share the link to this samples.

    • @CFEdev
      @CFEdev  10 หลายเดือนก่อน

      I don't know that he shared a repo but all the Svelte 5 preview stuff is here: svelte-5-preview.vercel.app/docs/introduction

  • @mbokil
    @mbokil 4 หลายเดือนก่อน

    I like version 5 more than 4. It is less magical and I like that you are only declaring reactive variables when you really need to. It is a nice API they designed: cleaner and more explicit.

  • @sourcecaster
    @sourcecaster 11 วันที่ผ่านมา

    Those runes... are not a good idea at all. Svelte was extremely powerful for its simplicity. Gosh, I gladly moved from React when Svelte was version 2. Not I see that we kinda got React again. That bothers me a lot. Here's a simple example from Svelte < v5:
    tableData.addColumn(3, { name: 'Average Price', key: 'av_price' }); // Implicit data change
    tableData = tableData; // Explicit reactivity trigger
    The syntax is obvious and it worked just perfectly well. But now, with runes... It no longer works. We see some weird custom Map and Set classes for addressing this issue, though the issue is much wider than that. I don't even talk about overcomplicated syntax and extremely unclear behavior and actual content of objects you reference...
    It was a terrible terrible idea. :(

  • @baxalasse
    @baxalasse 8 หลายเดือนก่อน +1

    $props, $bindable, #snippet and @render, not a fan. They solve things, but what a mess.