[Bug] Cant write value with SetItemAsync(), v2.1.4
See original GitHub issueDescribe the bug
When I try to save a jsonToken with ILocalStorageService.SetItemAsync()
a exception is thrown (I hope you can see something in the screenshot). My jsonToken was not saved. Trying GetItemAsync<string>
. I will stay to v2.1.3, that version is still working.
To Reproduce Steps to reproduce the behavior:
- Update Blazored.LocalStorage to v2.1.4
- Try to save a string value
- Catch exception
- Try read value, see wrong value.
Screenshots
Hosting Model (is this issue happening with a certain hosting model?):
- Blazor WebAssembly
Additional context
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.2.0-preview3.20168.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="3.1.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.0-preview3.20168.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.0-preview3.20168.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.0-preview3.20168.3" />
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
NativeModule: AsyncStorage is null · Issue #768
I am using version 1.17.7 for the async storage, and 0.68.2 for RN.
Read more >Can't use the returned Email & Token from AsyncStorage ...
My code is returning a value as expected! I'm building an app in React-Native and am currently working on the login. I need...
Read more >Getting logged out in React Native · Issue #7944
Describe the bug We use amplify-js 3.3.20 in our React Native app and some of our users are getting logged out from once...
Read more >SecureStore - Expo Documentation
A library that provides a way to encrypt and securely store key-value pairs locally on the device.
Read more >Recent Threads - Xamarin Community Forums
I'm creating a grid in xamarin form in which I'm implementing buttons using a list values that a I want to change throught...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, so it looks like the changes made to fix #57 and subsequent bug fixes have broken things for others.
I would suggest @soltrac and @daniel-rck go back to an earlier version of the library and I’ll have a think about what to do.
@daniel-rck @soltrac The issues should be resolved in the latest release. Let me know if you experience any further issues.