Hook label is sometimes empty
gaearon opened this issue · 2 comments
gaearon commented
bvaughn commented
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" 😭