Open GorvGoyl opened 4 months ago
That seems like an anti-pattern?... i.e component declared inside a component. Since it will continuously be re-rendered.
The issue is related to the react refresh runtime trying to inject into that func I think.
That seems like an anti-pattern?... i.e component declared inside a component. Since it will continuously be re-rendered.
Yes, it's not the recommended way, but the code is still valid, so it shouldn't throw a runtime error. It's interesting that if the nested component doesn't have a state or effect, then the issue doesn't occur.
The issue is related to the react refresh runtime trying to inject into that func I think.
Does this mean it's an issue with the third-party library and out of scope for this project?
What happened?
If I define a state in nested react component I get this error:
$RefreshSig$ is not a function
.This bug is reproducible in latest plasmo version. Here's the code:
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Microsoft Edge
Relevant log output
(OPTIONAL) Contribution
Code of Conduct