Accepted answer

Options are always the second argument - you need to do

useGetPostsQuery(undefined, { skip })


You'r passing 'skip' as argument for the query but it is an option, so, it must be in the second parameter of the hook. If your query does not have a parameter then you can pass 'null' or 'undefined'

Related Query

More Query from same tag