求助在RN 发送网络请求tab 多次切换报错



  • 求助在RN 发送网络请求tab 多次切换报错:
    2019-10-14 09:35:46.423 12283-13714/cn.com.agree E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
    Process: cn.com.agree, PID: 12283
    com.facebook.react.bridge.ObjectAlreadyConsumedException: Array already consumed
    at com.facebook.react.bridge.WritableNativeMap.putNativeArray(Native Method)
    at com.facebook.react.bridge.WritableNativeMap.putArray(WritableNativeMap.java:51)
    at cn.com.agree.amp.rnutil.Params.getSuccessResult(Params.java:112)
    at cn.com.agree.amp.rnplugin.network.NetworkModule$5.onDownloadSuccess(NetworkModule.java:366)
    at cn.com.agree.network.NetWorkUtil$11.onResponse(NetWorkUtil.java:942)
    at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135)
    at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
    at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:784)
    请问除了 加loading 规避外,还有其他办法吗


Log in to reply