getData() method always returns null
See original GitHub issueI am trying to implement transactions list storing with:
saveTransactionData(txnData) {
let txnList = getData('txns')
console.log(txnList)
if (!txnList) {
txnList = []
}
console.log(txnList)
txnList.push(txnData)
setData('txns', txnList, 30, 'd')
}
But getData('txns')
always returns null
even if value exists in the Local Storage. So I can’t save a list, I always receive only last transaction in storage.
What is wrong?
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Clipboard.GetDataObject() always returns null - Stack Overflow
Basically, the problem is that dataObject.GetData() always returns null even if dataObject.GetDataPresent() returned true earlier.
Read more >In the VS extension, Clipboard.GetData always returns null if ...
GetData method always returns null . Here is the simplified code: [Serializable] public class MyObject { public MyObject() { MyProperty = "Some Value";...
Read more >IDataObject GetData Method is always null - CodeProject
The image above is always null. I have tried every way of getting data out of the GetData() method but nothing works.
Read more >NullReferenceException Class (System) - Microsoft Learn
You get a null return value from a method, and then call a method on the returned type. This sometimes is the result...
Read more >Product Attribute always returns null - Magento Stack Exchange
Let's try this way, creates /etc/catalog_attributes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
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
@mazipan I think this issue related with my pull request https://github.com/mazipan/nuxt-storage/pull/76
This bug still reproduce in
"nuxt-storage": "^1.2.2"
, nuxt version is"nuxt": "^2.0.0"