Skip to content

Fix TypeError: Derived constructors may only return object or undefined#220

Merged
mbrevda merged 1 commit intombrevda:masterfrom
radum:patch-1
Jan 12, 2019
Merged

Fix TypeError: Derived constructors may only return object or undefined#220
mbrevda merged 1 commit intombrevda:masterfrom
radum:patch-1

Conversation

@radum
Copy link
Contributor

@radum radum commented Jan 12, 2019

A class constructor can either return or return an object. If we return true here to exit it will error with TypeError: Derived constructors may only return object or undefined during HMR.

Removing true, and just return will fix this problem.

A class constructor can either return or return an object. If we return true here to exit it will error with `TypeError: Derived constructors may only return object or undefined` during HMR.

Removing true, and just return will fix this problem.
@mbrevda
Copy link
Owner

mbrevda commented Jan 12, 2019

Hmm, this a strange bug - thanks for catching and fixing!

@mbrevda mbrevda merged commit c18712f into mbrevda:master Jan 12, 2019
@radum radum deleted the patch-1 branch January 12, 2019 23:11
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

Successfully merging this pull request may close these issues.

2 participants