vevlins

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

  •  
  •   vevlins · Jul 19, 2018 · 3069 views
    This topic created in 2916 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   ·   3105 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 13:52 · PVG 21:52 · LAX 06:52 · JFK 09:52
    ♥ Do have faith in what you're doing.