Skip to content

Commit 45ca4ad

Browse files
committed
Merge pull request #85 from rmosolgo/later-turbolinks-unmount
When using turbolinks, unmount components just before loading the new page
2 parents b1be9ae + ac1de0b commit 45ca4ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/assets/javascripts/react_ujs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949
}
5050
handleEvent('page:change', mountReactComponents);
51-
handleEvent('page:before-change', unmountReactComponents);
51+
handleEvent('page:receive', unmountReactComponents);
5252
};
5353

5454
var handleNativeEvents = function() {

0 commit comments

Comments
 (0)