-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Description
0.18+
It's referencing the old (before code changes) component. It doesn't happen with klasses because they use a hash to ensure the most recent is being used.
if (isFunction(node)) {
const context = node.type.name ? scope.generateContext(node.attributes) : node.attributes
const children = node.type(context)
node.children = [].concat(children)
for (let i = 0; i < node.children.length; i++) {
await generateBranch(siblings, node.children[i], `${depth}-${i}`, scope)
}
return
}repro:
- create a class component (eg Application.jsx)
- create a function component (eg Hero.jsx) and import on Application
- Update Hero
expected
- changes to show up
actual
- no changes
if Hero is converted to a class it works as expected
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels