Proper use if $state->set() vs $model->setState()