I'm performing a GET request with RTK Query, and want to delay the fetch to a button click (instead of having it automatically be called on page load).
I tried to manually set a {skip: true} value in the query just to see that I can stop the initial query call, but it didn't work, the query still loads on first render and the isUnitialized argument that I'm destructuring from the query always returns false.
The code below:
const {isUninitialized} = useGetShipmentsQuery({skip: true}).