replace deprecated react-loadable with suspense

This commit is contained in:
Paul Chavard 2020-10-13 17:04:51 +02:00
parent 59f4c8f7d8
commit ca0ba4ba2d
4 changed files with 22 additions and 17 deletions

View file

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