Fetches a Profile by either its full handle or id.
const { data, error, loading } = useProfile({ forHandle: 'lens/stani', // OR forProfileId: '0x04',});if (loading) { return <Loading />;}if (error) { return <Error error={error} />;}return <Profile profile={data} />; Copy
const { data, error, loading } = useProfile({ forHandle: 'lens/stani', // OR forProfileId: '0x04',});if (loading) { return <Loading />;}if (error) { return <Error error={error} />;}return <Profile profile={data} />;
UseProfileArgs
Experimental
This signature supports React Suspense.
const { data } = useProfile({ forHandle: 'lens/stani', suspense: true,});console.log(data.id); Copy
const { data } = useProfile({ forHandle: 'lens/stani', suspense: true,});console.log(data.id);
This API can change without notice
Fetches a Profile by either its full handle or id.