Vuex-module-decorators: [quest] add a @Nested decorator that allows us to injected modules inside modules

Created on 8 Oct 2018  路  6Comments  路  Source: championswimmer/vuex-module-decorators

closes https://github.com/championswimmer/vuex-module-decorators/issues/15

So one way of doing it is

@Module
class InnerModule extends VuexModule {
}

@Module
class OuterModule extends VuexModule {

  @Nested
  innerModule = new InnerModule()
}

But I am exploring other options too

Most helpful comment

Any reason this was closed? I do not see Nested module support in the latest version

All 6 comments

is @Nested in works?
looks cool to me..

I would love getting nested module support.

Is this the intended approach: to initialize the nested module(s) inside the parent module that is using it?

I wonder if there may be a way to leverage decorators for discovery like NestJS does, when you see that the property in a VuexModule has the type of another decorated VuexModule => use that decorated VuexModule.

This would be good. Also how would it handle namespacing state.outerModule.innerModule ?

Any reason this was closed? I do not see Nested module support in the latest version

+1

2,5 years gone and it's not implemented yet. Last commit to the repo almost year ago. Is the project dead?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BonBonSlick picture BonBonSlick  路  5Comments

darthf1 picture darthf1  路  5Comments

cyberflohr picture cyberflohr  路  4Comments

Akumzy picture Akumzy  路  5Comments

Hamidrezana picture Hamidrezana  路  4Comments