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
Do you want to request a feature or report a bug?
request a feature
What is the current behavior?
as default all the components are behave as impure-component
What is the expected behavior?
I want react to give a config and then I can tell it I'm always write my components as pure components and then I didn't need React.memo before all my components and as you know React.memo will only handle props not state (hooks).
I don't know why default behavior is impure component I had never use them it's so ugly in my mind
The text was updated successfully, but these errors were encountered:
mh-alahdadian
changed the title
add a always pure config for react
add a "always pure" config for react components
Aug 30, 2019
Do you want to request a feature or report a bug?
request a feature
What is the current behavior?
as default all the components are behave as impure-component
What is the expected behavior?
I want react to give a config and then I can tell it I'm always write my components as pure components and then I didn't need
React.memo
before all my components and as you knowReact.memo
will only handle props not state (hooks).I don't know why default behavior is impure component I had never use them it's so ugly in my mind
The text was updated successfully, but these errors were encountered: