angular2react icon indicating copy to clipboard operation
angular2react copied to clipboard

Context Api doesn't work

Open RodolfoSilva opened this issue 6 years ago • 2 comments

Has any example with Context API? I've tried use Context Api with this example

https://github.com/bcherny/angular2react-demos/tree/master/multi-file

But doesn't work.

I thinks is because angular2react create a new tree.

image

RodolfoSilva avatar Aug 14 '19 14:08 RodolfoSilva

I think it should just work, as long as all of your React components are descendent of your Provider.

bcherny avatar Aug 14 '19 14:08 bcherny

@bcherny I've tried use in your example but doesn't work :( Has a PR with React Portal, but doesn't work too.

https://github.com/coatue-oss/react2angular/pull/107

RodolfoSilva avatar Aug 14 '19 15:08 RodolfoSilva