You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anyway the issue comes from the as assertion that breaks the AST analysis. I will fix this.
the rule fires on the line declaring the function (not the memo) which is confusing because that line doesn't export anything
It's not easy to know with just an simple AST analysis when a file export both a component and a non-component if the component should be isolated to its own file because goal of the file if the non component wrapper (ex router definition) or if the file it mean to be for the component and the non component wrapper should be moved to another file. I agree this could be better, but I'm not sure it's worth the added complexity
I'm not sure, but I think perhaps the following is a false positive?
The rule fires on the following:
(the rule fires on the line declaring the function (not the memo), which is confusing because that line doesn't export anything)
The following however does not fire:
I haven't written the original code. The idea for the transformation came from https://stackoverflow.com/a/70890101
I'm using 0.4.11.
The text was updated successfully, but these errors were encountered: