Reactjs – I constantly get the initial value from the reducer
I just started learning redux< redux-toolkit and ran into the problem that my stat from the "Pastime" reducer always returns the initial value, although it works correctly in another functional component. The reducer import { createSlice } from '@reduxjs/toolkit' type…