Skip to content

React 16.9.0 support webpack plugin  #1319

@Bnaya

Description

@Bnaya

Due to changes in react 16.9, the patch in the webpack plugin no longer works
Also, seems like they baked react-refresh code into react-dom, that is very similar to this code,
So maybe with some tweaks this patch won't be needed at all?

The change:

if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type)
        if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type || (
        // Keep this check inline so it only runs on the false path:
        isCompatibleFamilyForHotReloading(child, element))) 

Related: hot-loader/react-dom#14

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions