With RTK query, do we have to use an effect to run a query on mount?
React Query runs the query on mount without an effect, so wondered if there was similar behaviour?
const Component = ({ id }) => {
const [postCheckApplication, { data }] = usePostCheckApplicationMutation();
useEffect(() => {
postCheckApplication({ application_id: id });
}, [id]);
console.log(data);