I have the predicament of passing in Redux actions into useEffect's dependencies list.
For example,
import { someReduxAction } from '../actions/greatestPathEverMade' const mapDispatchToProps = () => ({ someReduxAction }) const DummyComponent = ({ someReduxAction }) => { useEffect(() => { someReduxAction() }, [someReduxAction]) return ( .... ) } I'm 75% sure that the Redux Action is not changing so I can omit it from useEffect's dependency array but my question is mainly: Is it possible for Redux actions to change? Usually, they are constant in that a basic redux action will dispatch a type and payload object.
someReduxActionis a function, and I am guessing that it could create a new instance of this function on render