Minimal TanStack Start app demonstrating the lib end-to-end:
__root.tsxcallsconsumeFlashToastFn()in its loader and renders<FlashToastEffect />index.tsxexposes 5 buttons, each calling a server fn that uses one of theredirectWith*helpersredirected.tsxis the target page where the toast fires once
pnpm install
pnpm --filter @tanstack-start-toast/example-basic dev
# open http://localhost:3000The notify callback in this example appends rows to a #toast-feed div so the flow is
visible without a toast UI dependency. In a real app you'd replace it with sonner /
react-toastify / your own component.