Change record status: 
Project: 
Introduced in branch: 
10.1.x
Introduced in version: 
10.1.0
Description: 

Use \Drupal::service('theme.registry')->reset() instead

Impacts: 
Module developers