agraboso / agraboso/redux-api-middleware

API requests and server-side rendering

未关闭
#70 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
docs question
主要语言
JavaScript
星标
1.5k
派生
190
PR 合并指标
30 天内没有已合并 PR

描述

Hello people,
I am currently looking at how I could implement server-side rendering and I was wondering how `redux-api-middleware` would play out.

It is very new to me, but If i understand correctly, one way to achieve it is to use async actions via thunks, e.g. `redux-thunk`, and wait for these actions to build the redux state before serving it to render the html page.

Is it possible to achieve server-side rendering using `redux-api-middleware` to fetch data ? How would you do it ?

Thank you,

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。