()
| 102 | } |
| 103 | |
| 104 | computeMethodProps() { |
| 105 | const bindMethod = this.runBindMethod.bind(this) |
| 106 | return getMappers().reduce((prev, mapper) => { |
| 107 | if(mapper.method === undefined) { |
| 108 | return prev |
| 109 | } |
| 110 | const methods = mapper.method |
| 111 | let bindMethods = {} |
| 112 | for(let key in methods) { |
| 113 | const method = methods[key] |
| 114 | bindMethods[key] = (...args) => bindMethod(method)(...args) |
| 115 | } |
| 116 | return { ...prev, ...bindMethods } |
| 117 | }, {}) |
| 118 | } |
| 119 | |
| 120 | render() { |
| 121 | const { forwardedRef, dataProps, computeProps } = this.state |
nothing calls this directly
no test coverage detected