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
Congratulation for the great work on react_on_rails! 👍
I have just started trying it out. I am facing an issue where I cannot access the railsContext in the constructors of my components. It is always an empty Object {}.
Tracking down the stack brings me to node_package/src/createReactElement.js, because my component is a react component and not a generator function that returns one, it uses React.createElement(component, props) thus, discarding the railsContext.
Congratulation for the great work on react_on_rails! 👍
I have just started trying it out. I am facing an issue where I cannot access the
railsContext
in the constructors of my components. It is always an emptyObject {}
.Tracking down the stack brings me to
node_package/src/createReactElement.js
, because my component is a react component and not a generator function that returns one, it usesReact.createElement(component, props)
thus, discarding therailsContext
.What am I doing wrong ?
The text was updated successfully, but these errors were encountered: