Isolate react components from react loaders
This commit is contained in:
parent
03326169c5
commit
3a142fea40
4 changed files with 65 additions and 65 deletions
|
@ -73,6 +73,6 @@ window.Turbolinks = Turbolinks;
|
|||
|
||||
// Now that Turbolinks is globally exposed,configure ReactRailsUJS
|
||||
// eslint-disable-next-line no-undef
|
||||
ReactRailsUJS.useContext(require.context('components', true));
|
||||
ReactRailsUJS.useContext(require.context('loaders', true));
|
||||
// Remove previous event handlers and add new ones:
|
||||
ReactRailsUJS.detectEvents();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue