1.0.4 • Published 8 months ago

use-disposable-list v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

use-disposable-list

A React hook for a disposable list.

const [notifs, addNotif, removeNotif] = useDisposableList({
  hideDuration: 300,
  timeout: 2000,
});
interface NotificationsDef {
  id: string;
  show: boolean;
  details?: NotificationDef;
}

const [notifs, addNotif, removeNotif] = useDisposableList<NotificationDef>({
  hideDuration: 300,
  timeout: 2000,
});
  • notifs is a list of disposable notifications to display
1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago