`getNextParam` is not updating the input - tRPC