Create prefix injectors only when it's necessary
o3bvv opened this issue · comments
Currently we always pass an instance of injector to context manager. This is not good, as in case of nested scopes that instance will never be used. In addition, in case of autoprefix_injector
and hybrid_injector
an extra call to prefix generator will be made.
Prefix injectors must be created lazily, only when a new scope is defined.