1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 21:29:38 +02:00
Maybe/app/javascript/controllers/index.js

12 lines
587 B
JavaScript
Raw Permalink Normal View History

2024-02-02 09:05:04 -06:00
// Import and register all your controllers from the importmap under controllers/*
import { application } from "controllers/application";
2024-02-02 09:05:04 -06:00
// Eager load all controllers defined in the import map under controllers/**/*_controller
import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading";
eagerLoadControllersFrom("controllers", application);
2024-02-02 09:05:04 -06:00
// Lazy load controllers as they appear in the DOM (remember not to preload controllers in import map!)
// import { lazyLoadControllersFrom } from "@hotwired/stimulus-loading"
// lazyLoadControllersFrom("controllers", application)