Jakub
kleyu.bsky.social
Jakub
@kleyu.bsky.social
Just found this weird behavior in Radix’s implementation of FocusScope: github.com/radix-ui/pri....

I’m not surprised that it works flawlessly using @ariakit.org.
[FocusScope] Doesn't scroll to a focusable element in an overflow container · Issue #3227 · radix-ui/primitives
Bug report Current Behavior When there is an interactive element (e.g link) placed in an overflow container, focusing on it doesn't scroll it into view. Expected behavior I'd expect the link to be ...
github.com
November 13, 2024 at 12:09 PM
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