skip to Main Content

Wait until async finish, then save the data in variables – Woocommerce

I'm totally newbie in JavaScript ... I have this code: const MMKV = new MMKVStorage.Loader().initialize(); async function getData() { let role = await MMKV.getStringAsync("role"); if (role === "distribuidor") { consumerKey = Constants.Keys.distributorConsumerKey; consumerSecret = Constants.Keys.distributorConsumerSecret; return [consumerKey, consumerSecret]; } };…

VIEW QUESTION
Back To Top
Search