Skip to content

Discussion: fetchData API #6

@geelen

Description

@geelen

Hi Ryan, let me start by saying I love love love this repo. I have made little starts at doing something similar but never gotten very far, and this looks fantastic. I particularly <3 the webpack config and your approach to async data on the server side. But on the latter I had a couple of questions:

The way you've got it, each top-level Handler needs to declare a fetchData if it has async dependencies, is that correct? If that Handler was, say, a dashboard, that had to pull in data from multiple places, that all needs to be done in the Handler then passed down to each component? There's no way for the components to 'bubble up' their dependencies on async data so it doesn't all need to be done at the one level?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions