Skip to content

Commit 8e8c520

Browse files
author
Robert Mosolgo
committed
Merge pull request #528 from shulyugin/master
Add a tip on how to trigger UJS mounting from js
2 parents 4119e57 + a485813 commit 8e8c520

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ and `data-react-props`.
147147
If Turbolinks is present components are mounted on the `page:change` event, and unmounted on `page:before-unload`.
148148
__Turbolinks >= 2.4.0__ is recommended because it exposes better events.
149149

150+
In case of __Ajax calls__, the UJS mounting can be triggered manually by calling from javascript:
151+
```javascript
152+
ReactRailsUJS.mountComponents()
153+
```
154+
150155
The view helper's signature is:
151156

152157
```ruby

0 commit comments

Comments
 (0)