Unable to store values locally
See original GitHub issueHi, I am using v2.5.8 from almost 8 months. It was working fine. Today I tried to update few packages and I noticed that Settings plugin is not working. It is giving following exception.
As you can see my type is int but showing as !0
Below are my objects
private const string PageTypeKey= nameof(PageTypeKey);
private static readonly ePage PageTypeValue= ePage.NotSet;
public static ePage PageType
{
get
{
return (ePage)AppSettings.GetValueOrDefault(PageTypeKey, PageTypeValue);
}
set
{
AppSettings.AddOrUpdateValue(PageTypeKey, (int)value);
}
}
Here PageTypeValue type is int but showing as !0 which is very strange.
I tried to upgrade to v3.1.1(stable) and in this version it is not storing any value. Every time I open it’s (another object which is string ) empty not the one I stored last time.
I will try to make repo as I have more pressing issues in my current project now. Note: I upgraded to vs2017 15.7.1 recently
Issue Analytics
- State:
- Created 5 years ago
- Comments:21 (6 by maintainers)
Top Results From Across the Web
Cannot store a value in local storage - javascript
I use Amplifyjs store library to access local storage. It's simple to use/understand, works really well and it's cross browser (mobile browser ...
Read more >Unable to store data locally - Questions
i can't retrieve locallystore veriable, kindly help… thanks in advance, var testObject = { 'one': 1, ... Unable to store data locally.
Read more >Solved: Unable to access browser's local storage. Some fea...
Unable to access browser's local storage. Some features such as undo or redo might not work until you clear browser's data.
Read more >How to Use Local Storage with JavaScript
Local storage allows developers to store and retrieve data in the browser. The data stored in local storage will not expire.
Read more >Please Stop Using Local Storage
You can store data in local storage using either syntax localStorage.userName = "rdegges"; localStorage.setItem("favoriteColor", "black"); // Once data is ...
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 FreeTop 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
Top GitHub Comments
maybe delete the bin/obj and clean and rebuild the solution.
Is this fixed? i am facing the same problem