What is the benefit of this as opposed to using $state directly?