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
You can change the behaviours of `ReactRailsUJS` by calling `setOptions(options)` function:
534
+
535
+
```js
536
+
ReactRailsUJS.setOptions({ replaceNull:false });
537
+
```
538
+
539
+
Current acceptable options are the following:
540
+
541
+
| Key | Value type | Description | Default |
542
+
| --- | ---------- | ----------- | ------- |
543
+
|`replaceNull`| boolean (`true` / `false`) | Whether to replace all `null`s in the props from Rails (originally `nil` in Rails) with `undefined`. May be helpful when defining the types of the props in TypeScript. See [discussion#1272](https://github.com/reactjs/react-rails/discussions/1272). |`false`|
0 commit comments