我已将产品数据存储在MongoDB数据库中,我想获取该数据并将其存储在productReducer.js文件的初始状态。目前,我已经在初始状态下对产品数据进行了硬编码,但我不希望这样。告诉我如何解决这个问题。我已经制作了API。我已经使用了thunk,但它对我不起作用。我还有2天的时间要提交。 I have hard coded the data into the initial state of the Product Reducer. I don't want that. I want to Bring data from my MongoDB database and store it here in the initial state.