Which handler return matches the Inertia guide’s page render?
Inertia handlers return inertia::render with the component name and props. The React file is resources/js/pages/Notes/Index.tsx. view() is the server-template function, not the Inertia one.
A Note model includes a secret you do not want in the page JSON. What does the Inertia guide tell you to do?
Every prop is visible to anyone inspecting the page. Mark private model fields with #[serde(skip)]. PasswordHash cannot be serialized at all unless you skip it.
The profile should paint the user immediately and load their notes afterward. Which prop wrapper is that?
inertia::defer omits the prop from the first response and fetches it after the page mounts. Capture owned values with async move because the callback cannot borrow the handler’s locals.