diff --git a/.changeset/breezy-schools-fail.md b/.changeset/breezy-schools-fail.md new file mode 100644 index 00000000..3f0ee9fe --- /dev/null +++ b/.changeset/breezy-schools-fail.md @@ -0,0 +1,5 @@ +--- +'@tanstack/devtools-vite': minor +--- + +Console piping functionality diff --git a/.changeset/shaggy-taxes-turn.md b/.changeset/shaggy-taxes-turn.md new file mode 100644 index 00000000..b37fd02f --- /dev/null +++ b/.changeset/shaggy-taxes-turn.md @@ -0,0 +1,5 @@ +--- +'@tanstack/devtools': patch +--- + +Fix a UI bug diff --git a/examples/react/start/src/components/Header.tsx b/examples/react/start/src/components/Header.tsx index 3bc20cca..dfb649d4 100644 --- a/examples/react/start/src/components/Header.tsx +++ b/examples/react/start/src/components/Header.tsx @@ -11,6 +11,12 @@ import { StickyNote, X, } from 'lucide-react' +import { createServerFn } from '@tanstack/react-start' + +const logger = createServerFn({ method: 'POST' }).handler(async ({ data }) => { + console.log('triggered logger server function') + console.log(data) +}) export default function Header() { const [isOpen, setIsOpen] = useState(false) @@ -22,7 +28,11 @@ export default function Header() { <>