@tempots/ui

makeNowSignal() function

Creates a signal that automatically updates with the current time at a specified frequency. The signal will clean up its interval when disposed.

Signature:

makeNowSignal: (frequency?: number) => Value<Date>

Parameters

Parameter

Type

Description

frequency

number

(Optional) Milliseconds between updates (defaults to 1000ms/1 second)

Returns: Value<Date>

A Value that updates with the current time at the specified frequency