react-start-toast
v0.1.1
Published
Headless server-set toast notifications for TanStack Start (TSS). Flash toasts via h3 cookies and server fns — a 1:1 adaptation of remix-toast. Bring your own UI (sonner, react-toastify, etc.).
Downloads
249
Maintainers
Readme
react-start-toast
Server-set toast notifications for TanStack Start. React adapter.
// In a server-fn handler:
const { redirectWithSuccess } = await import('react-start-toast/server')
await redirectWithSuccess('/dashboard', 'Logged in!')The lib has two entrypoints:
react-start-toast— client-safe React (FlashToastEffect,ToastProvider, types)react-start-toast/server— server-only helpers (setFlashToast,redirectWith*,replaceWith*, …)
See the repo README for setup, recipes, the dynamic-import rule, and the source-order constraint.
License
MIT
