how to pass probs from layout to all pages
Unanswered
chr.yx posted this in #help-forum
1 Reply
you could use useGetUser hook to get the user from the other 2 places instead of passing props
using
const params = useParams()
to get the username from the params
you can also put the useEffect and useParams inside the useGetUser hook and only return user, isLoading, error
using
const params = useParams()
to get the username from the params
you can also put the useEffect and useParams inside the useGetUser hook and only return user, isLoading, error