After the next resolvers are invoked, use
Object.freeze
to make the resolved
instance immutable. This resolver does not operate on the component to avoid the possibility
of freezing it due to misconfiguration.