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
If I try to get a injectIntl component as a ref, I get a ProxyComponent, and not the component, and for this reason I can't call functions from that component.
In ComponentB I can do -> <ComponentA ref={(el) => {this.a = el}} , And then
this.a.someFunction();
#2
export default injectIntl(ComponentA);
In ComponentB I can do -> <ComponentA ref={(el) => {this.a = el}} , BUT then
this.a.someFunction() -> someFucntion is not available...
This happens because ComponentA is a ProxyComponent, and not the real component... How to solve this?
The text was updated successfully, but these errors were encountered:
If I try to get a injectIntl component as a ref, I get a ProxyComponent, and not the component, and for this reason I can't call functions from that component.
#1
export default ComponentA;
In ComponentB I can do -> <ComponentA ref={(el) => {this.a = el}} , And then
this.a.someFunction();
#2
export default injectIntl(ComponentA);
In ComponentB I can do -> <ComponentA ref={(el) => {this.a = el}} , BUT then
this.a.someFunction() -> someFucntion is not available...
This happens because ComponentA is a ProxyComponent, and not the real component... How to solve this?
The text was updated successfully, but these errors were encountered: