-
-
Notifications
You must be signed in to change notification settings - Fork 42
[bug] purity is too strict flagging console.logs #1616
Copy link
Copy link
Closed
Labels
Status: ReleasedThe issue has been releasedThe issue has been releasedType: BugSomething isn't workingSomething isn't working
Description
Describe the bug
purity should have an option to ignore console calls within react component bodies, since this “side effect” is unobservable and broadly harmless, even if technically impure.
Reproduction
export function MyComponent() {
console.log('hi');
return;
}Expected behavior
possible to disable purity from flagging console statements
Platform and versions
3.0.0-rc.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Status: ReleasedThe issue has been releasedThe issue has been releasedType: BugSomething isn't workingSomething isn't working