The law does not say the residence permit becomes automatically void the moment you resign, but it requires you to change the registered particulars within 10 days and forbids working for a new employer without a work permit — so holding the old permit without a supporting work permit is a fragile state, not a safely lawful one.
Nationwide (all cities)
What the law requires during the transition
What the law requires during the transition. Article 33 of the Exit-Entry Administration Law: where the registered particulars of a foreigner's residence document change, the holder shall apply for the change at the exit-entry administration of the public security authority of the place of residence within 10 days from the date the registered particulars change. Because resigning changes the work-related registered particulars, this 10-day change requirement applies; Article 37 adds that a foreigner staying or residing in China may not engage in activities inconsistent with the purpose of stay or residence and shall leave China before the prescribed stay or residence period expires. Article 20 of the Regulations on Employment of Foreigners in China requires that, after the labour contract is terminated, the employer report to the authorities, return the foreigner's employment certificate and residence document, and complete the exit procedure.
The law does not state automatic invalidity, but does not make the old permit a safe status
The law does not state automatic invalidity, but does not make the old permit a safe status. No provision states that the residence permit becomes automatically void at the moment of resignation; the residence document remains a printed document with a validity period. However, the work-type residence permit is supported by the work permit, and once the work permit is cancelled, the residence document's residence purpose is no longer supported. Article 43 of the Exit-Entry Administration Law defines working without the required work permit and work-type residence document as illegal employment, so during the transition you must not start working for a new employer under the old permit.
What a safe transition looks like
What a safe transition looks like. Rather than relying on the old residence permit, the official path is to apply for a stay document (the National Immigration Administration's stay-document guide provides for a stay document of up to 30 days where the residence grounds have ceased and continued stay is needed for humanitarian reasons) or to complete the residence change within 10 days after the new work permit is approved. The honest summary is: holding the old residence permit without a supporting work permit is technically not automatically void, but it is not a status the law protects, and working under it is illegal employment.