avoiding used more hooks than previous render - tRPC