"use client"; import { Preloaded, useMutation, usePreloadedQuery } from "convex/react"; import { api } from "../../convex/_generated/api"; export default function Home({ preloaded, }: { preloaded: Preloaded; }) { const data = usePreloadedQuery(preloaded); const addNumber = useMutation(api.myFunctions.addNumber); return ( <>

Reactive client-loaded data

{JSON.stringify(data, null, 2)}
); }