Skip to content

Releases: gnoff/react-tunnel

v0.1.0 Updated Provider API

25 Aug 05:08
Compare
Choose a tag to compare

Provider now takes single prop provide

if provide is an {object} then the provide object is provided to child injectors
if provide is a {function} then the return value of the provide function is provided to child injectors

the object form automatically forwards parent provided values in situations where Providers are nested

the function form takes parentProvided as an argument and you can manipulate, ignore, or re-provide the parentProvided values as you see fit.

v0.0.3

19 Aug 16:04
Compare
Choose a tag to compare

Base nestable Provider functionality with a working inject decorator.

Please note that the API for Provider is going to change in the nest minor (0.1.0 or similar) to take provided props as a prop rather than grabbing them off of Provider directly. Additionally it will alternatively take a prop mapping function which is how we will support nested provided forwarding.