Fixed #24055 -- Keep reference to view class for resolve()