Skip to main content

Feedback

resetTimer

Cancels or dismisses a timer by its timerId, including when its screen is not mounted. Mounted readers return to idle. A false return means localStorage threw when it removed the timer (storage the browser blocks), so a reload brings it back; mounted state still resets.

import { resetTimer } from "@/lib/ouro/use-timer";

Example

resetTimer("pasta");

Parameters

timerId
Type: string

Returns

boolean