1.0.4 • Published 2 years ago

use-disposable-list v1.0.4

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

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago