useAfterTimestamp
useAfterTimestmp
returns boolean that represents whether specified timestamp already passed.
For offline processing, you can’t rely on real time clock to measure time. This hook replaces patterns
where you would use useEffect
+ setTimeout
in a live processing case.
Reference
Arguments
timestampMs
Timestamp in milliseconds.
- Type:
number
Returns
true
if the time defined by the timestamp already passed, false
otherwise.
- Type:
boolean