We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f66058 commit 3c082eaCopy full SHA for 3c082ea
test/components/connect.spec.js
@@ -985,13 +985,14 @@ describe('React', () => {
985
986
function imitateHotReloading(TargetClass, SourceClass) {
987
// Crude imitation of hot reloading that does the job
988
- Object.keys(SourceClass.prototype).filter(key =>
+ Object.getOwnPropertyNames(SourceClass.prototype).filter(key =>
989
typeof SourceClass.prototype[key] === 'function'
990
).forEach(key => {
991
- if (key !== 'render') {
+ if (key !== 'render' && key !== 'constructor') {
992
TargetClass.prototype[key] = SourceClass.prototype[key]
993
}
994
})
995
+
996
container.forceUpdate()
997
998
0 commit comments