In my notification component, I display the state of queries. To avoid conflicts with variable names, I have to import all states under different names.
const { loading, success, error } = useAppSelector(state => state.messageReducer)
const { loading, success, error } = useAppSelector(state => state.offerReducer)
I am aiming to streamline this process using destructuring:
const { customName, customName1, customName2 } = {loading, success, error}