traveloka-archive / react-accio

Declaratively fetch multiple APIs with a single React component.
MIT License
21 stars 8 forks source link

Allow resolver injection from props #9

Open raibima opened 6 years ago

raibima commented 6 years ago

Need to be able to do resolver injection via resolver prop:

<Accio url="/foo/bar" resolver={resolveFooBar}>
  {renderData}
</Accio>