preactjs/preact-cli
Ver no GitHubSerialize and hydrate data from prerender-urls on the client.
Open
#784 aberto em 4 de mai. de 2019
enhancementhelp wantedneed more info
Métricas do repositório
- Stars
- (4.674 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
It would be good if we could detect that prerender-urls has passed more than { url, title } as the data for a given route, and serialize that into the HTML:
<script type="text/props" id="appprops">
{ "url": "/profile/john", "profile": { "name": "John Doe" } }
</script>
Then we can pass these to <App /> when booting on the client.