When we use useSelector hook all the components where I have used the useSelector hooks gets re rendered whenever i change the state
how to avoid this and is there any other way I can prevent the components from re rendering
When we use useSelector hook all the components where I have used the useSelector hooks gets re rendered whenever i change the state
how to avoid this and is there any other way I can prevent the components from re rendering
Copyright © 2021 Jogjafile Inc.
useSelector takes a second argument which is a function that checks if the previous and current state are equal to determine when to update.