Тёмный

How to use layers in Nuxt 4 

Coding with Martin
Подписаться 60
Просмотров 270
50% 1

Nuxt 4 is almost out and in this video we take a look at how to use layers in the upcoming Nuxt 4.

Опубликовано:

 

21 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@viesturs.knopkens
@viesturs.knopkens 16 дней назад
Sounds like a very useful feature, that you can have different config files for each layer. Although I have to think about a little bit when in real life I would use that - e.g. one layer uses Pinia, one Vuex? Or one Bootstrap, but another Tailwind? 😊 But in general I like the idea 🙂👍
@QueeeeenZ
@QueeeeenZ 16 дней назад
Layers is more about grouping your app into logical units like "users", "settings", "sales", "blog", "auth" etc. So you can work on your "settings" feature and find all files related to settings in that layer. This is especially useful in larger apps with bigger teams where one team or developer might work on settings feature, another developer can work on users etc. without conflicts. It also gives the app nice, clean structure.
@viesturs.knopkens
@viesturs.knopkens 14 дней назад
@@QueeeeenZ Yes, I understand the layers concept and agree with you, but my comment was meant more on "each layer can have its own config" - I was wondering how often in real life I would need a different config file for each layer :) But I don't insist that there aren't use cases for that, especially for large apps :)
@QueeeeenZ
@QueeeeenZ 14 дней назад
Oh, I see what you mean. I have created large scale apps with layers and I have never needed to specify a different config for each layer. The only difference between layer configs was to specify where to find imports, components etc. because it's a different directory for each layer.
@ayushmanbt
@ayushmanbt 16 дней назад
this awfully reminds me of django and the apps concept
@QueeeeenZ
@QueeeeenZ 15 дней назад
Nuxt also has an upcoming multi-app feature which is for micro frontends. But layers is simply a way to group your monorepo app into logical features and it's completely optional.
@nonefvnfvnjnjnjevjenjvonej3384
just pointless meanderings in the javascript land. they keep changing things for no reason. instead they should selectively ignore things not being changed such as node modules... i dont know why javascript devs lap it up...
Далее
How to use Nuxt Layers to encapsulate your code
17:08
Why I Don’t Unit Test
8:25
Просмотров 88 тыс.
Впервые дал другу машину…
00:57
Nuxt Test Utils - A Primer to Testing in Nuxt
20:06
Просмотров 6 тыс.
Only The Best Developers Understand How This Works
18:32
Migrate to Nuxt 4 NOW!?
10:14
Просмотров 9 тыс.
why im NOT hyped for nuxt 4
4:00
Просмотров 15 тыс.
Why you should use useState()
17:57
Просмотров 13 тыс.
WHAT THE HELL IS Nuxt Content?
11:12
Просмотров 535
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Просмотров 72 тыс.