Merge pull request #5696 from tchak/fix-react-block-repetable

Mount react components on page updates
This commit is contained in:
Paul Chavard 2020-10-15 18:59:03 +02:00 committed by GitHub
commit cb822ef20b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);