Mount react components on page updates
This commit is contained in:
parent
43a36b68da
commit
618c81b9a6
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
|
||||
ReactRailsUJS.useContext(require.context('loaders', true));
|
||||
addEventListener('ds:page:update', ReactRailsUJS.handleMount);
|
||||
|
|
Loading…
Reference in a new issue