Should You Use Tasks in Qwik?

Published: 10 March 2024
on channel: JS 2 brain
364
21

👉 Post: https://js2brain.com/blog/should-you-...

We should be cautious with using tasks in Qwik. Especially, heavy use of useVisibleTask$() can eliminate the benefits that we gain from using Qwik in the first place.

🎁 Qwik Cheat Sheet: https://js2brain.com/topics/qwik/chea...

🎓 Website: https://js2brain.com

🎵 Music and SFX: https://ref.audiio.com/kmx6s7zy

🕐 Timestamps:
00:00 - Start
00:40 - What makes Qwik performant?
02:09 - useTask$ Factory
04:10 - useVisibleTask$ Factory
05:40 - Use Case 1: Event Handling
07:50 - Alternative 1-1
08:46 - Alternative 1-2
09:51 - Use Case 2: Fetching API data
12:21 - Alternative 2-1
13:32 - Alternative 2-2
15:39 - Use Case 3: Synchronizing State
16:54 - Alternative 3-1
17:23 - Alternative 3-2
17:59 - When to use Tasks


Watch video Should You Use Tasks in Qwik? online without registration, duration hours minute second in high quality. This video was added by user JS 2 brain 10 March 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 36 once and liked it 2 people.