Am i missing something or i did something wrong? So in my explore page there's a profile card that use the user username. and the page only update the value when i refresh the page
export async function usernameChange({ username }: usernameChangeSchema) {
// Username Update
revalidatePath('/explore', 'page');
return { data };
}
And this is my explore page
export default async function ExplorePage() {
const users = await getCreators();
return(
//Explore Page
)
export async function getCreators() {
const supabase = createServerClient();
try {
const { data, error } = await supabase
.from('user_profiles')
.select('*')
if (!data) {
throw error;
}
return data;
} catch (error) {
console.error('Error:', error);
throw error;
}
}
