skip to Main Content

onSuccess and onError not being fired in rtk query – Reactjs

const [login] = useLoginMutation({ onSuccess: () => { console.log("Success"); setAlertType("success"); setAlertMessage("Login successful!"); setOpenAlert(true); }, onError: (error) => { console.log("Error: " + error); setAlertType("error"); setAlertMessage(`Login failed: ${error}`); setOpenAlert(true); } }); Everything is working except that the onSuccess and onError doesn't fire.…

VIEW QUESTION

SpringBoot + PostgreSQL "Column does not exist"

I have been trying to retrieve all data from the table but getting "Caused by: org.postgresql.util.PSQLException: ERROR: column tenantenti0_.module_name does not exist" I have tried all the below still the issue persists: Adding in application.properties file --> spring.jpa.properties.hibernate.default_schema=${your-default-schema-name} No camel…

VIEW QUESTION
Back To Top
Search