Add support for views in states

[Delivers #80137182]