You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to this issue gaearon/react-hot-loader#304, tools/libs such as react-hot-loader that returns proxy components instead of original ones, using children.type === Target would result false. We can use:
According to this issue gaearon/react-hot-loader#304, tools/libs such as react-hot-loader that returns proxy components instead of original ones, using
children.type === Target
would result false. We can use:to record proxy component type and compare with that.
The problem of this solution is if there are required props in
Target
component, there will be warnings.There are also other proposed fixes, such as gaearon/react-proxy#68
The text was updated successfully, but these errors were encountered: