As the rulers of a one-party totalitarian state, the CCP is setting itself up to take the credit and blame for everything in China. Following the "century of humiliation", China is attempting a century of rejuvenation. It started poorly with the Cultural Revolution and tens of millions dying in famine and violence, but it has made remarkable progress since Mao. It appears that the government is well-liked today (although nobody knows anything about China [1]) and economic development is continuing. The government can easily deal with a bit of discontent if required (by, say, putting a million people in concentration camps), but if there was a genuine crisis and people realised that the government had terribly mismanaged things or economically stagnates long before it becomes truly wealthy, the CCP might find that the mandate of heaven has shifted.
1. https://foreignpolicy.com/2018/03/21/nobody-knows-anything-a...