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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Platform:

Replies:

143634 Mar 29,2019 02:19 PM UTC Ionic 0
loading
Tags: General
Swati Dubey
Asked On March 29, 2019 02:19 PM UTC

Hi ,
   Goal:
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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon