Jakub
kleyu.bsky.social
Jakub
@kleyu.bsky.social
Reposted by Jakub
react’s model is that setting state puts update in that component’s queue and sets a dirty flag. the dirty flag propagates up the tree ("this subtree has work"). there is a game loop that checks for highest pri work to do. it drills down to dirty bit and recalcs from there down with queued update.
November 1, 2024 at 6:56 PM