Update state when something might change