Closed gaearon closed 5 years ago
It looks like the source code in this example has a "custom hook" that's assigned to a variable (e.g. useFoo
) but is being created by a helper function (which returns an anonymous function, so there's no actual name being associated with the hook). So that's the first problem.
A second related problem is that FB's lazy/inline requires are resulting in this function being named e.g. "__annotator.module" in DEV (and empty string in prod).
Looks like we've created a new thing, the "Higher order Hook" ðŸ˜
DevTools will, for now, just display these as dimmed "Anonymous"
Fixed in abc8ef3, deploying now.
Seeing this in
FB5TopNavBar
.