Skip to content

Commit 69255c8

Browse files
authored
Merge pull request #1135 from calleluks/patch-1
Don't unmount components on Turbolinks navigation
2 parents 7f46d76 + 8a58ca8 commit 69255c8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

react_ujs/src/events/turbolinks.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ module.exports = {
22
// Turbolinks 5+ got rid of named events (?!)
33
setup: function(ujs) {
44
ujs.handleEvent('turbolinks:load', ujs.handleMount);
5-
ujs.handleEvent('turbolinks:before-render', ujs.handleUnmount);
65
},
76

87
teardown: function(ujs) {
98
ujs.removeEvent('turbolinks:load', ujs.handleMount);
10-
ujs.removeEvent('turbolinks:before-render', ujs.handleUnmount);
119
},
1210
}

0 commit comments

Comments
 (0)