stereobooster/react-snap

Generate json-files from ajax requests

開放

#221 建立於 2018年7月23日

 (5 則留言) (0 個反應) (0 位負責人)JavaScript (403 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (4,982 顆星)
PR 合併指標
 (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!

貢獻者指南