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
React-Rails converts `nil` to `null` while parsing props from Ruby to JavaScript. Optionally, you can configure React-Rails to parse `nil` values to `undefined` as per the following:
808
+
809
+
```ruby
810
+
# config/application.rb
811
+
moduleTheAppName
812
+
classApplication < Rails::Application
813
+
# ...
814
+
# Set to true to convert null values in props into undefined
815
+
config.react.null_to_undefined_props =true
816
+
# ...
817
+
end
818
+
end
819
+
```
820
+
821
+
More information in: [discussion#1272](https://github.com/reactjs/react-rails/discussions/1272).
822
+
804
823
## Common Errors
805
824
### Getting warning for `Can't resolve 'react-dom/client'` in React < 18
0 commit comments