Behavior: Managing Toast Auto‑Close Timeouts and Manual Cancellation in Chakra UI 2.x
Managing Toast Auto‑Close and Cancellation The goal is to ensure that toast notifications dismiss correctly whether they close automatically or are manually dismissed. In Chakra UI v2.x, the useToast hook accepts an autoClose prop that starts a timer per toast. When closeToast(id) is called, the pending timer should be cleared to avoid a duplicate dismissal.