davnicwil / react-frontload

Async data loading for React components, on client & server
451 stars 21 forks source link

Per-render promise queue that 'just works' without API changes #25

Closed davnicwil closed 5 years ago

davnicwil commented 5 years ago

This PR removes the API changes introduced in v1.0.4 for frontloadServerRender which injected a clean context for promise queues for each render.

With this change, this is managed automatically without the user having to do anything using the node async_hooks API.

This means the frontloadServerRender API can be reverted back to how it was - there's now no need to manually plug in the extra context argument.