fix(ui): use-keyboard visual mode render loop #55
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
track:api
track:auto
track:core
track:deploy
track:infra
track:ui
v0.1.0
v0.1.1
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/delta!55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/keyboard-visual-loop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
actionsprop is a new object every render, causing infinite loop in visual mode useEffect.Solution
Store in
actionsRef, use ref in effect and handler, remove from dependency arrays.