MCPcopy Create free account
hub / github.com/tomchentw/react-google-maps / construct

Function construct

lib/utils/MapChildHelper.js:66–85  ·  view source on GitHub ↗
(propTypes, updaterMap, prevProps, instance)

Source from the content-addressed store, hash-verified

64}
65
66function construct(propTypes, updaterMap, prevProps, instance) {
67 var _reduce2 = (0, _reduce4.default)(
68 propTypes,
69 rdcUncontrolledAndControlledProps,
70 {
71 nextProps: {},
72 prevProps: prevProps,
73 }
74 ),
75 nextProps = _reduce2.nextProps
76
77 applyUpdaterToNextProps(
78 updaterMap,
79 {
80 /* empty prevProps for construct */
81 },
82 nextProps,
83 instance
84 )
85}
86
87function componentDidMount(component, instance, eventMap) {
88 registerEvents(component, instance, eventMap)

Callers

nothing calls this directly

Calls 1

applyUpdaterToNextPropsFunction · 0.70

Tested by

no test coverage detected