Skip to main content

useFetchUser

Overview

The useFetchUser hook is used to retrieve detailed information about a specific user within the current project by their user ID. This can be useful for displaying user profiles or fetching data for interactions.

Usage Example

Parameters & Returns

Parameters

The hook returns a function that accepts an object with the following field:
userId
string
required
The ID of the user to fetch.

Returns

The function resolves with a user object containing user details:
User
User
The details of the fetched user object.