react-native-storage icon indicating copy to clipboard operation
react-native-storage copied to clipboard

[Question] mix getAllDataForKey and getIdsForKey together

Open cyclops24 opened this issue 8 years ago • 2 comments

Hi @sunnylqm I need same thing as @dzeroone said in #59. Now getAllDataForKey only return data and getIdsForKey only contains Ids. How we can mix this two function in a right way?

Please guide me. Thanks for your attention.

cyclops24 avatar Apr 01 '17 09:04 cyclops24

My suggestion is to save id in your rawData, so getAllDataForKey also get ids.

sunnylqm avatar Apr 01 '17 10:04 sunnylqm

@sunnylqm, Thanks man. It's worked well but I think if we have a new mix function and prevent add id to rawData it's prevent some data redundancy. (It's just a suggestion) 😉

cyclops24 avatar Apr 01 '17 19:04 cyclops24