vevlins

componentDidCatch 在生命周期中的触发时机是什么

  •  
  •   vevlins · Jul 19, 2018 · 3036 views
    This topic created in 2906 days ago, the information mentioned may be changed or developed.

    看过很多生命周期说明,虽然有说道 componentDidCatch,但是没有提及其时机如何

    2 replies    2018-07-19 15:46:43 +08:00
    RonaldoC
        1
    RonaldoC  
       Jul 19, 2018 via Android
    react?
    PyCode
        2
    PyCode  
       Jul 19, 2018
    记得这是 error boundary 里用的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5449 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 06:51 · PVG 14:51 · LAX 23:51 · JFK 02:51
    ♥ Do have faith in what you're doing.