Skip to content

useLastChanged ​

time
test coverage
Last changed: last month

Hook for records the timestamp of the last change

typescript
import { useLastChanged } from '@siberiacancode/reactuse';

Usage ​

typescript
const lastChanged = useLastChanged(source);

Demo ​

Api ​

Parameters

NameTypeDefaultNote
sourceany-The source of the last change
options.initialValue?number | nullnullThe initial value

Source ​

Source • Demo

Contributors ​

Avatardebabin
AvatarVLADISLAW9

Released under the MIT License.