10-family/hello.api.tsx
Hello API
Support
Support source used by the official view family examples.
export const save = async () => {
data.saving = true;
try {
await api("/api/count", {
method: "POST",
body: {
count: data.count,
},
});
} finally {
data.saving = false;
}
};