Revalidating tRPC server request/page after email change
Hello, i want to revalidate request where im getting user by his e-mail after e-mail change in settings, but have no idea how.
I have that request for getting currently logged in user profile:
and this is my component where im fetching this request:
in <ChangeEmailForm/> component im changing user email. After change im getting from getProfile request because it doesnt see user in DB with new e-mail. Is there any way to do it or ill need to move getProfile to client request?
2 Replies
In typical endpoint it was no problem beacuse i was able to just revalidate specified tag/path :/
Did you ever find a solution for TRPC? I'm having similar difficulties