react useEffect comparing objects
Use apiOptions as state value I’m not sure how you are consuming the custom hook but making apiOptions a state value by using useState should work just fine. This way you can serve it to your custom hook as a state value like so: const [apiOptions, setApiOptions] = useState({ a: 1 }) const { data … Read more