You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to support Angular we need to add the missing feature in Angular which is <AngularContext>. Which will allow us to hook into the injector hierarchy for <App> with either ReflectInjector or StaticInjector
// `injector` is optional
<AngularContext injector={this.injector}>
<App>
</AngularContext>
any code within <App> will work correctly without any refactors needed since at the end of the day we're looking for a key walking up the injector context.
Mitosis can compile the code correctly and it will be up to the dev to either create the injector context correctly or we can let them generate the NgModule/AngularContext
We can also rename this to <AngularInjector> and useInjector and alias it to useContext. We will support useInjector if an react app is getting the ng injector if react is rendered in an angular app
The text was updated successfully, but these errors were encountered:
Adoption usually takes a while, it seems safe to target Angular 14 and up as that will likely no longer be the latest version when Mitosis has a big enough user base for there to be lots of demand for “not the latest Angular” support
In order to support Angular we need to add the missing feature in Angular which is
<AngularContext>
. Which will allow us to hook into the injector hierarchy for<App>
with either ReflectInjector or StaticInjectorany code within
<App>
will work correctly without any refactors needed since at the end of the day we're looking for a key walking up the injector context.Mitosis can compile the code correctly and it will be up to the dev to either create the injector context correctly or we can let them generate the NgModule/AngularContext
We can also rename this to
<AngularInjector>
anduseInjector
and alias it touseContext
. We will supportuseInjector
if an react app is getting the ng injector if react is rendered in an angular appThe text was updated successfully, but these errors were encountered: