-
Notifications
You must be signed in to change notification settings - Fork 18
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
Error handling #40
base: main
Are you sure you want to change the base?
Error handling #40
Conversation
This reverts commit 920371a.
Hi, thank you for the pr, much needed and appreciated 👍. Wondering, will we be able to mock (pre-set) load/save errors in previews and tests? |
@VilemKurz As long as you mock the shared key's strategy to make it Feel free to give this branch a spin and report back! Ideally we have some feedback from the community before merging. |
@Shared
persistence strategies can fail to load or save, but we have generally silently ignored such failures. This PR explores introducingloadError
andsaveError
properties on the projected value, similar to SwiftData's@Query
'sfetchError
.