Of Ukraine is anything to go off of, initial success in repelling the invasion will lead to a nationalistic wave of support, but as the war devolves into grinding attrition with China unable to get a foothold on Taiwan and the Taiwanese unable to do anything about Chinese firepower raining down on critical infrastructure, the population will want to find some sort of peace deal.
Of Ukraine is anything to go off of, initial success in repelling the invasion will lead to a nationalistic wave of support, but as the war devolves into grinding attrition with China unable to get a foothold on Taiwan and the Taiwanese unable to do anything about Chinese firepower raining down on critical infrastructure, the population will want to find some sort of peace deal.