t3 stack with Clerk profile creator

I’m just trying to create a profile for the user on sign in/up if it doesn’t have one, I was trying with getting the profile and if data is null instead to return an error (don’t found how to handle the error in the front) get a null and redirect it to a route to complete the profile data, but once I mutate the profile with the data and push the route again to / it is cached with the null value and it redirect again to creating page. Anyone knows how to clear that cache or have a better method to do this case ?
0 Replies
No replies yetBe the first to reply to this messageJoin