I am making a cart in ecommerce app. and i have included a remove button but the page state is not updating. when i am pressing the remove button then the total price is getting reduced but that item is not removed from the cart. Can any one help me to figure what i did wrong ?