Javascript – React Hook "useGetCatalogueDataByIdQuery" is called conditionally. React Hooks must be called in the exact same order in every component render
I have this component where i don't want to all api unless Catalogue id exists const GeneralInfoForm = ({ currentStep, setCurrentStep }: GeneralInfoFormValues) => { const user = getCurrentUser(); const dispatch= useAppDispatch() // Mutation hook for adding catalogue info const…