question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to store values locally

See original GitHub issue

Hi, 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.

image

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:closed
  • Created 5 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
jamesmontemagnocommented, May 16, 2018

maybe delete the bin/obj and clean and rebuild the solution.

0reactions
DigitalJocommented, Jun 25, 2019

Is this fixed? i am facing the same problem

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found