loadedOnRequest() not loading assets on request
I register the followinf assets in my service provider:
I have a custom widget the needs one of the JS files. But they arent loaded when requested!
widget:
If I remove the loadedOnRequest(), then they are always loaded, but I dont really want that. I only want them to load when this widget is rendered. Am I missing something?
6 Replies
Let me know if you need more information 🙂
bump
What is the exact version of filament you have installed? Code looks ok to me.
Hmm. Should be fine then. I’m not seeing anything wrong. Are you registering them in boot() or register() in the service provider?
in boot()
If its ok with you I can try making a minimum reproduction repo
Sure