mobx-lesson-20170122
mobx-lesson-20170122 copied to clipboard

`/** * Created by cloudesafe on 2017/4/13. */ import React, { Component } from 'react'; import { StyleSheet, Text, View, ListView, RefreshControl } from 'react-native'; import { observer } from...
在mobx中若在@action是箭头函数就报错,但我看mobx说是action支持剪头函数的。报错如下:Cannot read property 'length' of undefined 出错代码为项目文件夹下node_modules/react-proxy/modules/deleteUnknownAutoBindMethods.js 第38行prototypeDescriptor.get()为undefined,所以.length就出错了,如下: ```js function shouldDeleteModernInstanceMethod(component, name) { var prototype = component.constructor.prototype; var prototypeDescriptor = Object.getOwnPropertyDescriptor(prototype, name); if (!prototypeDescriptor || !prototypeDescriptor.get) { // This is...