kn-hooks 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -89,7 +89,7 @@ const useDictionary=(props)=>{
|
|
|
89
89
|
if(beforeApi){
|
|
90
90
|
params = beforeApi();
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
let ret = await api(params);
|
|
93
93
|
if(afterApi){
|
|
94
94
|
ret = afterApi(ret);
|
|
95
95
|
setTypes(ret||[]);
|
|
@@ -255,7 +255,7 @@ export const createDictionary=options=>{
|
|
|
255
255
|
if(beforeApi){
|
|
256
256
|
params = beforeApi();
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
let ret = await api(params);
|
|
259
259
|
if(afterApi){
|
|
260
260
|
ret = afterApi(ret);
|
|
261
261
|
setTypes(ret||[]);
|