Skip to content

v0.1.0 Updated Provider API

Latest
Compare
Choose a tag to compare
@gnoff gnoff released this 25 Aug 05:08
· 7 commits to master since this release

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.