react-native-storage
react-native-storage copied to clipboard
[Question] mix getAllDataForKey and getIdsForKey together
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.
My suggestion is to save id in your rawData, so getAllDataForKey also get ids.
@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) 😉