We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ionic storage issue: Deletion of single data from application storage results in deletion of enitre data on application refresh

Hi ,
i was trying to complete this task
     Task 2
  • In this task you will make use of storage support in the app to persist the user's favorite dishes on the device. The information should persist across app shut down and restart. When the app starts the favorite dishes information should be retrieved from storage and initialized in FavoriteProvider. Whenver the user adds or deletes a dish from favorites, the change should be immediately persisted to the storage
  • What I was getting ?
  • When i try to delete an item from list of favorites shown on my favorites page which uses deleteFavorite() method provided by FavoriteProvider class , the dleted item gets dleted from the storage but not fetched from the storage of application on refreshing app.
  • Why Am i not getting updated data on app refresh on my favourite page ?

Attachment: error_b4be4fd.zip

Live Chat Icon For mobile
Up arrow icon