replace deprecated react-loadable with suspense
This commit is contained in:
parent
59f4c8f7d8
commit
ca0ba4ba2d
4 changed files with 22 additions and 17 deletions
|
@ -60,8 +60,5 @@ ActiveStorage.start();
|
|||
// Expose globals
|
||||
window.DS = window.DS || DS;
|
||||
|
||||
// Now that Turbolinks is globally exposed,configure ReactRailsUJS
|
||||
// eslint-disable-next-line no-undef, react-hooks/rules-of-hooks
|
||||
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