carpediem
Load composable on-demand
Hello everyone,
Some of my composables use a bunch of dependencies and to alleviate the dependencies required at startup I want to load the composables in question on demand only. That's why I've set this up (please see code below).
Before I wasn't using
nuxtApp.runWithContext
(please see code), but was getting lots of errors about the nuxt instance not being available.
Do you see any problems with the way we do things? Do you know of an easier and/or more effective way?
Thanks in advance 🙏🏽
9 replies