Gezinmeyi atla
What if you could use web workers directly from JSX? 🤯
0:00 / 2:40

What if you could use web workers directly from JSX? 🤯

Manu

@manucorporat8,3 B takipçi

X profili
962 beğeniİndirOrijinal gönderi

222.707 görüntüleme

What if you could use web workers directly from JSX? 🤯 expensiveStuff())} > Run in web worker!

10 Yorum

Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır

  • Manu (Qwik) profil fotoğrafı

    @manucorporat

    worker$ is powered by @QwikDev code extraction, check out how it works:

    61 beğeni

  • Manu (Qwik) profil fotoğrafı

    @manucorporat

    worker$ is an experimental feature you can try installing @builder.io/qwik-worker, but Qwik 1.0 is already released!

    38 beğeni

  • Aral Roca profil fotoğrafı

    @aralroca

    I like much this approach wrapping the function with server$ or worker$ than using "use server" or "use client" as Next.js do. It's more natural.

    7 beğeni

  • Manu (Qwik) profil fotoğrafı

    @manucorporat

    it is really a primitive (not a feature) that developers can use to build on top (not only the core team), wrote about it here:

    6 beğeni

  • José Donato 🦋 profil fotoğrafı

    @josedonato__

    this is mind blowing 🤯 at this point @QwikDev must be the most innovative frontend framework out there

    7 beğeni

  • Manu (Qwik) profil fotoğrafı

    @manucorporat

    @QwikDev The most amazing thing, is that this is built on top of the serialization and code extraction primitives that power resumability! this util is 100% user-land code!

    9 beğeni

  • Tob 🌿📯 𝕏 profil fotoğrafı

    @tob_sen

    @manucorporat Are there any plans for abortController api for worker$ and server$? I have a use case already in our new store for aborting relation fetch when link is navigating.

    5 beğeni

  • Manu (Qwik) profil fotoğrafı

    @manucorporat

    I am keeping it in a different repo, so we can experiment, discover what's needed and eventually graduate it into an API of QwikCity! so i would say so! abortController support would be amazing

    7 beğeni

  • real007 profil fotoğrafı

    @MrH20102019

    @QwikDev The animation did stop for a little bit tho🙈. Nevertheless really really impressive stuff 👌

    4 beğeni

  • Manu (Qwik) profil fotoğrafı

    @manucorporat

    @MrH26750794 @QwikDev ah!! i think it's actually some dev server + the instantiation of the worker itself (if called a second time, it would not see it). Nothing compared to running the same thing in main though :)

    5 beğeni