Check if all Child-Components have been mounted

后端 未结 1 1045
太阳男子 2021-02-20 13:20

Is there any way to detect if the childs have been mounted? When i initialize the Isotope, all children components must be mounted for the initialize. With a timeout of 5ms it i

  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-20 13:44

    React waits to mount all child components before calling componentDidMount on the parent. If you find a repro case where this isn't true, please file a bug.

    0 讨论(0)