- Introduced a pending state to track the target expansion state during animations. - Improved debounce handling to ensure smoother transitions and prevent rapid state changes. - Updated logic to check for new pending states after animations complete, enhancing responsiveness and stability.