The solution
My problem did not require me to subscribe to state updates for the slice. Thus, useSelector()
was unhelpful. After looking over the documentation again, I found useStore(). The following line of code allows me to read the current state of an entire slice, which I then print out in response to a click event:
import { useStore } from 'react-redux';
...
const reduxStore = useStore();
const handleClick = async () => {
console.log(JSON.stringify(reduxStore.getState().mySlice));
}