Merge pull request #5696 from tchak/fix-react-block-repetable
Mount react components on page updates
This commit is contained in:
commit
cb822ef20b
1 changed files with 1 additions and 0 deletions
|
@ -62,3 +62,4 @@ window.DS = window.DS || DS;
|
||||||
|
|
||||||
// eslint-disable-next-line no-undef, react-hooks/rules-of-hooks
|
// eslint-disable-next-line no-undef, react-hooks/rules-of-hooks
|
||||||
ReactRailsUJS.useContext(require.context('loaders', true));
|
ReactRailsUJS.useContext(require.context('loaders', true));
|
||||||
|
addEventListener('ds:page:update', ReactRailsUJS.handleMount);
|
||||||
|
|
Loading…
Reference in a new issue