alibaba / rax

🐰 Rax is a progressive framework for building universal application. https://rax.js.org
Other
7.99k stars 627 forks source link

[Change] Avoid __isPendingForceUpdate error in production #2198

Closed SoloJiang closed 3 years ago

SoloJiang commented 3 years ago

With async state update, Rax will throw error when the target component has beed destroied. However, It's a lot of trouble for developers to get this scenario right.

In React, it will console warning in development, and do nothing in production.