stereobooster/react-snap

Generate json-files from ajax requests

Open

#221 创建于 2018年7月23日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)JavaScript (403 fork)batch import
enhancementhelp wanted

仓库指标

Star
 (4,982 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Hi!

I've just started using react-snap together with create-react-app, loadable-components and redux. Everything works great so far. React-snap generates prerendered html for every route that can be used for the initial requests, loadable-components generates js-bundles for all the subsequent navigation/requests and data is fetched in the form of json from a rest-api.

Would it be possible for react-snap to also generate separate json-files along with the prerendered html and make all subsequent requests fetch those instead of burden the rest-api?

Thanks in advance!

贡献者指南