Skip to content

HMR does not work when exporting undefined #5911

Closed
@kylemh

Description

@kylemh

Bug report

Describe the bug

As described by @timneutkens -> #5857 (comment)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

aboutPage.replace('export default', 'export default undefined;\nexport const fn =')

and run yarn testonly --testPathPattern="basic" -t "should recover after a bad return from the render function"

Expected behavior

Edit to test should pass

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions