So I am re-writing a component with hooks, and I ran into an interesting challenge, I need to mimick some old behaviour of componentWillReceiveProps with the
componentWillReceiveProps
With the current logic, you want to fire a side-effect only on lateMinutes[${bookingId}].value change:
lateMinutes[${bookingId}].value
const Component = props => { useEffect(() => { console.log('prop lateMinutes changed'); // ... }, [props[`lateMinutes[${bookingId}].value`]); return ... };