fix: prevent UI freezes from recomposition storms on rapid clicking (Closes #142) #144
Reference in New Issue
Block a user
Delete Branch "feature/issue-142-ui-freezes-on-rapid-clicking-due-to-recomposition"
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?
Summary
rememberCardElevation()helper that caches theCardElevationinstance across recompositions, preventing new object allocation on every composition cycle in Attribute and Talent cardsonBoxClickandonHealClicklambdas inremember()inDamageMonitorPanel, preventing childDamageTrackcomposables from unnecessarily recomposinghistoryVersion++now only fires when the history dialog is actually visible, avoiding unnecessaryMainScaffoldrecomposition on every dice rollClickDebounceutility (300ms throttle) applied to Attribute card, Talent card, and DamageTrack box click handlers to prevent rapid state update stormsCloses #142
Test plan