stereobooster/react-snap

Generate json-files from ajax requests

Ouverte

#221 ouverte le 23 juil. 2018

 (5 commentaires) (0 réaction) (0 personne assignée)JavaScript (403 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (4 982 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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!

Guide contributeur