getAllItems() return value inconsistent on different platforms
See original GitHub issueThanks for this library! It’s been super-helpful for us.
We noticed that the getAllItems()
function resolves the promise with different data types on iOS vs Android.
On iOS, we get back an array that contains another array. The inner array has objects with the keys service
, key
, and value
:
[
[
{ service: 'app', key: 'foo', value: 'bar' },
{ service: 'app', key: 'baz', value: 'quux' }
]
]
On Android, we get back an object that just has keys and values:
{
foo: 'bar',
baz: 'quux'
}
This inconsistency makes it difficult to use the results in a cross-platform way.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:12
- Comments:22 (5 by maintainers)
Top Results From Across the Web
Inconsistent return value Pylint - python - Stack Overflow
I have used pylint to check my code and I am receiving the following suggestion. 'Either all return statements in ...
Read more >magento 1.7 - Get custom attribute value in Observer
I need to get the list of items in the order and get a custom attribute (the type is text). So far I...
Read more >Frame lose metadata on reloading - Miro Community
Hello,For a few weeks now, the Frames have not stored metadata when the board is reloaded. Is an update planned at this level, ......
Read more >Upgrade Notes | Customer's Canvas Dev
When some API elements become inconsistent and inconvenient, ... snapLines{type}CheckboxEnabled ... let productModel = await editor.eval(() => { return ...
Read more >Export SharePoint List Items to CSV using PowerShell
Can this be applied to export data from the Microsoft 365 platform – for example ... Here is how: PowerShell to Get All...
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
The issue still exists in v6.0.0-alpha.9.
For now, I decided not to use getAllItems.
Hi guys 👋
Thanks for the report. There were no reason regressing this issue. In fact, it may have happend when I merged the keystore branch within the master branch, because the keystore branch had many differences in android’s files and this fix wasn’t included there.
So, we should only open a new PR for that using the master branch again. I may have do this later, however feel free doing that.