摘要: 加载帖子 之前我们在postSlice做了硬编码的post作为其初始状态,现在我们改一下,改成从服务器获取帖子数据。 提取帖子selectors 我们已经在slice中编写过reducer、prepare和thunk,现在继续介绍一个实践,在slice中编写 selector,这个选择器就是我们在 阅读全文
posted @ 2023-03-07 14:57 刘老六 阅读(41) 评论(0) 推荐(0) 编辑