A credit now opens /person/{id}: portrait, name, department, life dates and
birthplace, the biography, and the full filmography ranked by vote count.
One request carries all of it — combined_credits rides along on the person
call — so the discover based starring query and its with_people filter go.
The biography fills whatever height the portrait leaves and fades where it
is cut, with the whole text in a tooltip on hover; a phone has no height to
respect there, so it simply runs on.
Route level and query level skeletons stand in while it loads, built from
the shadcn primitive.
Development server side fetches go over the loopback rather than SITE_URL,
which is a LAN address meant for other devices: once that address moves the
fetch hangs until undici times out, ten seconds per navigation.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
8 lines
243 B
TypeScript
8 lines
243 B
TypeScript
import { useQuery } from '@tanstack/react-query';
|
|
|
|
import personQuery, { PersonQueryProps } from '@/data/queries/person';
|
|
|
|
const useProfile = ({ personId }: PersonQueryProps) => useQuery(personQuery({ personId }));
|
|
|
|
export default useProfile;
|