case types.SUCCESS_SIGNED_PDF:
return {
...state,
pdfURL: action.payload,
pdfLoaded: true, //in this line
pdfError: false,
inside this you should use pdfLoaded : false coz when you are getting the response from backend so you should set false to the loader