I\'m using the SWR
In my code I am using the junction of both as follows
const vehiclesStates = useSelector(({ vehiclesStates: state }) => state); /