-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store WithReadWriteTransaction updates do not persist after app close. #234
Comments
Hello @w0mba7 Could you please answer these questions so that we could help you better?
Thanks, |
Here is the code that i have for writing updating the cache. I didn't see any errors in the console log and I can use the results else were in the app, they are just lost when the app quits. Is there somewhere specific I should be checking for the write erros? |
We're aware of an issue with the persistent cache for apps built using Xcode 10.2. Can you verify the version of Xcode you're using? (Since you specify iOS 12.2, I'm assuming it's Xcode 10.2 or 10.2.1, but I'd like to confirm.) |
Yes I am using Xcode 10.2.1 |
Thanks for the update. I believe this will be fixed when we update to SQLite.swift 0.11.6. I'll update this issue once we have that released. |
I just added SQLite 11.6 as a direct dependency in Carthage and I was able to force close the app and relaunch with the data. |
That's great to hear. I'm going to leave this issue open until we resolve the SQLite update in the main codebase. |
This is fixed in 2.12.0. Please comment on that issue if you continue to see problems. |
Describe the bug
Writing to the cache directly doesn't update the persistent store and does not live through app shutdown. The cache is functioning because I run another query and get results from the server then shut down the app, and then see those results using a query with the .returnCacheDataDontFetch policy.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect that updating the cache directly would also right to the persistent cache.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment(please complete the following information):
Device Information (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: