SF
Server Function
TanStack Start createServerFn with explicit invalidateTags call
export const addTodoServerFn = createServerFn({ method: "POST" })
.handler(async ({ data }) => {
const created = await createTodo(data.name);
await tagInvalidation.invalidateTags({
tags: [appTags.todos()],
});
return created;
});