useToasterStore() API

This hook gives you access to the internal toaster state. This is the right choice if you need access to the data without wanting to roll your own toaster.

In comparison to useToaster() it does not handle pausing or provide handlers for creating your own notification system.

import { useToasterStore } from 'react-hot-toast';
const { toasts, pausedAt } = useToasterStore();