i was trying to complete this task
- 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 ?