()
| 228 | } |
| 229 | |
| 230 | render() { |
| 231 | // Avoid rendering until ready |
| 232 | if (!this[HAS_RESOLVED]) { |
| 233 | return false; |
| 234 | } |
| 235 | |
| 236 | // If render is called again (e.g. hot-reloading), re-resolve |
| 237 | if (this.isPending(this.state)) { |
| 238 | this.resolve(this.state); |
| 239 | } |
| 240 | |
| 241 | // Both those props provided by parent & dynamically resolved |
| 242 | return this.props.children({ |
| 243 | ...this.props.props, |
| 244 | ...this.state.resolved, |
| 245 | }); |
| 246 | } |
| 247 | |
| 248 | resolve(state) { |
| 249 | const pending = Object.keys(state.pending).map(name => { |
nothing calls this directly
no outgoing calls
no test coverage detected