Skip to content

Fetching data about the profile and displaying it now works

Filip Kayar requested to merge ViewProfileInfo into EditingProfileInfo

The viewing information now works, the profile now displays the things about the user, like name, followers and so on. We are now mergin it to the profileinfo branch since we now can fetch the data from the database and set it in the profile. The information about the user is saved in a global hook which is done with the help of zustand. So we can call this hook to get the user data from anywhere, like we have with the authenticated user, but in this case we do not fetch info about the user locally but when we visit a new profile we get that users information. This will help now so we can fetch the data about the user and display it but also and most important that we can edit it in our own profile

Merge request reports

Loading