V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
fhc023
V2EX  ›  React

还是不太理解为啥 react 要移除 componentWillReceiveProps

  •  
  •   fhc023 · Jan 19, 2019 · 6414 views
    This topic created in 2667 days ago, the information mentioned may be changed or developed.

    说是因为支持异步 Render 采用了 fiber reconciliation。但是为啥异步 render 就不能用 componentWillReceiveProps 了呢?具体有啥会引起问题的例子吗?

    1 replies    2019-10-18 14:54:16 +08:00
    HuaWan
        1
    HuaWan  
       Oct 18, 2019
    讲道理,这个钩子用起来真恶心,很容易死循环。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2763 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:34 · PVG 23:34 · LAX 08:34 · JFK 11:34
    ♥ Do have faith in what you're doing.