MCPcopy Create free account
hub / github.com/ericclemmons/react-resolver / render

Function render

src/Resolver.js:230–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected