-
Notifications
You must be signed in to change notification settings - Fork 17
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 with new LocalStorage instance #26
Comments
The error you mentioned occurred in older versions. However, it should be resolved in v2.0.0-beta-2. @ahmedsaidzahran Do you have additional info, or a code sample, that helps me reproduce the problem? |
@hanssens and @ahmedsaidzahran, The issue is related to using(){}. The storage object is not destroyed so it is overrated by the new object that was created in an inner method that responsible for storing the value. you will find below my examples for the issue and my solution. Issue Ex:
Soultion:
|
@hanssens, I suggest we could convert the Storage property to be static. |
I can't reproduce the problem you mention. Is there any way you @ahmedsaidzahran or @MuhammadAbdelsalam can provide me with an example? Something like for example this Clear() test would be great as a reusable example. |
JsonReaderException: Additional text encountered after finished reading JSON content: c. Path '', line 1, position 2.
using (var storage = new LocalStorage())
it worked fine but when used .Clear() it crashed, also I used the new release v2.0.0-beta-2 but nothing
The text was updated successfully, but these errors were encountered: