When ReactIntercom props changes, Intercom('update') method gets called with new values.
In ReactIntercom v1 update method is called in componentWillReceiveProps lifecycle method.
https://github.com/nhagen/react-intercom/blob/master/src/index.js#L59
In ReactIntercom v2 update method is called directly in render.
https://github.com/nhagen/react-intercom/blob/2.0/src/react-intercom.ts#L69
Side effects in React should be called after component is rendered. Otherwise render performance is affected.
Based on my profiling calling an update takes tens of miliseconds.

In version 1 Intercom('update') should be called in componentDidMount().
In version 2 Intercom('update') should be called in useEffect()
When
ReactIntercomprops changes,Intercom('update')method gets called with new values.In
ReactIntercomv1 update method is called incomponentWillReceivePropslifecycle method.https://github.com/nhagen/react-intercom/blob/master/src/index.js#L59
In
ReactIntercomv2 update method is called directly in render.https://github.com/nhagen/react-intercom/blob/2.0/src/react-intercom.ts#L69
Side effects in React should be called after component is rendered. Otherwise render performance is affected.
Based on my profiling calling an update takes tens of miliseconds.

In version 1
Intercom('update')should be called incomponentDidMount().In version 2
Intercom('update')should be called inuseEffect()