Activities

SumNeuron

SumNeuron posted a new question

docs •

Documentation Request vuex-store.md

The vuex store documentation needs to be extended to give more clear specification on more complex store structures.

e.g.

store/
--state.js
--actions.js
--getters.js
--mutations.js
--index.js
--modules/
--+--moduleA/
--+--+--state.js
--+--+--actions.js
--+--+--getters.js
--+--+--mutations.js
--+--+--index.js
--+--moduleB/
--+--+--state.js
--+--+--actions.js
--+--+--getters.js
--+--+--mutations.js
--+--+--index.js

currently as it stands it states:

You can optionally break down a module file into separate files: state.js, actions.js, mutations.js and getters.js. If you maintain an index.js file with state, getters and mutations while having a single separate file for actions, that will also still be properly recognized.

which is fine if your store has no modules.
but it doesnt clarify how to arrange this for multiple modules.

In addition, for the "classic mode" which will be deprecate in v3

there is no documentation for what the index file should be:

here is an example from my project

import Vuex from 'vuex'

import mutations from '@/store/mutations.js';
import actions from '@/store/actions.js';
import getters from '@/store/getters.js';
import state from '@/store/state.js';

const createStore = () => {
  const store = new Vuex.Store({
    namespaced: true,
    state,
    actions,
    getters,
    mutations,
    modules: {}
  })

  return store
}

export default createStore

so all this information should be provided

laitang2000

laitang2000 posted a new question

docs •

Nuxt-ts documentation clarification

The documentation isn't clear about the process of using Nuxt-ts and it would be helpful if you guys can clarify some points I have.

Is Nuxt-ts to be used interdependently of Nuxt i.e. should there only be either Nuxt or Nuxt-ts in the packages.json

When adding Nuxt-ts to an existing project via yarn or npm do I have to create a tsconfig.json?

Is intellisense possible in the the template markup of a component when using Nuxt-ts?

Thanks in advance

laitang2000

laitang2000 posted a new question

docs •

Nuxt-ts adding to existing nuxt project

The documentation isn't clear about the process of using Nuxt-ts and it would be helpful if you guys can clarify some points I have.

Is Nuxt-ts to be used interdependently of Nuxt i.e. should there only be either Nuxt or Nuxt-ts in the packages.json

When adding Nuxt-ts to an existing project via yarn or npm do I have to create a tsconfig.json?

Is intellisense possible in the the template markup of a component when using Nuxt-ts?

Thanks in advance

maluio

maluio posted a new feature request

docs •

idea Event handling / component communication

What problem does this feature solve?

My use case was:
A button in a parent component triggers a method call in a child component.

I couldn't find a solution in the nuxtjs docs. Eventually, I stumbled upon this thread:
https://github.com/nuxt/nuxt.js/issues/849

Using

this.$root.$emit
this.$root.$on

solved my problem.

What does the proposed changes look like?

Ideally, a new page explains the available options for component communication: (this.$root.$emit, eventBus, …)

The new page could be available at https://nuxtjs.org/api/component-communiction

If this is a valid feature request I could write that page.

Thank you.

otofune

otofune resolved the question #c166

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c175

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c176

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c177

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c173

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c168

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c169

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c170

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c171

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c172

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c167

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c174

docs •

please ignore this issue

Just close it.

otofune

otofune resolved the question #c165

docs •

please ignore this issue

Just close it.

otofune

otofune posted a new question

docs •

please ignore this issue

I'm very sorry… I created an incorrect program.
Please ignore this issue. 🙇

otofune

otofune posted a new question

docs •

please ignore this issue

I'm very sorry… I created an incorrect program.
Please ignore this issue. 🙇

otofune

otofune posted a new question

docs •

please ignore this issue

I'm very sorry… I created an incorrect program.
Please ignore this issue. 🙇