Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

类组件判断两次 #25

Open
blazer233 opened this issue Apr 13, 2021 · 1 comment
Open

类组件判断两次 #25

blazer233 opened this issue Apr 13, 2021 · 1 comment

Comments

@blazer233
Copy link

在catch-react-error/src/catch-react-error.tsx文件下,为什么 在30行进行了一次类组件的判断,在59行又进行了一次类组件的判断,这样做是否是重复的操作

@Aaronphy
Copy link

我觉得这边加上这样主要是 解决ts 类型推倒问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants