Render toast on page load To render a toast on initial page load it is required that the function toast() is called inside of a setTimeout or requestAnimationFrame.
https://sonner.emilkowal.ski/toast