-
Notifications
You must be signed in to change notification settings - Fork 117
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
LocalStorageWrapper broken on 0.10.0 #426
Comments
On holidays for 2 weeks with limited access to workstation. Would using any for interface work as workaround until we fix this? |
No rush at all! I simply stuck with the previous version for now, just thought I'd make you all aware of this. Thank you and enjoy your holiday! |
Just to add some info, same happens for IonicStorageWrapper. I think all wrappers are broken in 0.10.0. Anyway, awesome library, thanks for your work and enjoy holidays! |
cc @PMCorbett regarding what I think may be the relevant commit 8a15634 via #420 No pressure, just adding information. |
I could not figure out how to fix it apart from adding |
Same here since 0.10, 0.11 didn't solve it:
|
We need to add |
fix apollographql#426, fix apollographql#431 by adding support for new synchronous removeItem
fix apollographql#426, fix apollographql#431 by adding support for new synchronous removeItem
Using the same code from the example:
apollo-cache-persist/examples/web/src/index.tsx
Lines 76 to 83 in 7bcb322
And from the readme, upgrading to 0.10.0 without any code changes breaks the use of
LocalStorageWrapper
:The types don't seem to line up. I think the problem is that the type parameter for
CachePersistor
is in this caseNormalizedCacheObject
so the options areApolloPersistOptions<NormalizedCacheObject>
which would then expectstorage: PersistentStorage<PersistedData<NormalizedCacheObject>>
, whereasLocalStorageWrapper
would providePersistentStorage<string>
.By the way, it might be helpful to build the examples as part of CI to serve as a canary for when these things happen.
The text was updated successfully, but these errors were encountered: