When add and update store set state to 1.