1.0.4 • Published 3 years ago

use-disposable-list v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years 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

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago