Mount react components on page updates

This commit is contained in:
Paul Chavard 2020-10-15 18:46:12 +02:00
parent 43a36b68da
commit 618c81b9a6

View file

@ -62,3 +62,4 @@ window.DS = window.DS || DS;
// eslint-disable-next-line no-undef, react-hooks/rules-of-hooks
ReactRailsUJS.useContext(require.context('loaders', true));
addEventListener('ds:page:update', ReactRailsUJS.handleMount);