ui-router / react-hybrid

Hybrid adapter for routing to AngularJS and React components
MIT License
88 stars 37 forks source link

UIView unable to render with custom parameters #37

Open billycrid opened 6 years ago

billycrid commented 6 years ago

Trying to pass custom parameters into a UIView using the render method as suggested here: https://github.com/ui-router/react/issues/26

<UIView render={(Component, props) => <Component {...props} {...someOtherProps} /> } />

seems that render is not actually working when using react-hybrid? is this a known issue

waitingduck commented 6 years ago

Having same issue but not able to find where cause the problem...

from the doc

The component finds the state context by looking first via React props, and second via AngularJS DOM data. It then provides the state context to its children using React props.

So I guess it should get react props?

waitingduck commented 6 years ago

Tried react context. Looks like it will also break the context, so it can only get default context but not value props in provider.

waitingduck commented 5 years ago

So here is my finding about this.