Reactjs – how to stop rerenders when using a custom hook (maximum depth exceeded)
I have a react project where I'm trying to separate logic from the UI by moving it to a hook. The hook in question collects paged data from an RTK Query and aggregates it into a state variable transactions. If…