MENU

Fun & Interesting

Ref vs SynchronizedRef vs SubscriptionRef: State Management in Effect

Lucas Barake 771 lượt xem 2 months ago
Video Not Working? Fix It Now

Buy me a coffee! https://buymeacoffee.com/lucasbarake

00:00 Introduction to Ref
02:38 Ref Core Concepts
05:21 Modifying Refs: Ref.modify() & Key Methods
07:30 SynchronizedRef: Atomic Updates & Race Prevention
08:48 Ref Source Code Deep Dive
13:01 SynchronizedRef Implementation Walkthrough
17:07 SubscriptionRef: Change Streams & Reactivity
18:04 SubscriptionRef Source Code Deep Dive
20:45 Testing SubscriptionRef.changes Stream
22:01 Effect's Cooperative Scheduling: Fiber Execution & yieldNow()
24:02 Advanced Pattern: Ref as Shared State
25:29 Ref Comparison Guide

Comment