Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuxt context combined inject #26

Open
hartmut-co-uk opened this issue Dec 20, 2018 · 2 comments
Open

nuxt context combined inject #26

hartmut-co-uk opened this issue Dec 20, 2018 · 2 comments

Comments

@hartmut-co-uk
Copy link

I'm submitting a ...
[ ] bug report
[x] feature request
[ ] question about the decisions made in the repository
[x] question about how to use this project

Summary
When using vuex-simple with nuxt - the store has to be integrated via 'classical mode'
https://nuxtjs.org/guide/vuex-store/#classic-mode
see #12
First issue: the classical mode is deprecated for Nuxt 3
Second issue: nuxt provides 'combined inject' for its store modules
https://nuxtjs.org/guide/plugins#combined-inject
which allows to define & inject objects/functions into SFC & the vuex store, used e.g. by the axios-plugin to access the configured axios instance in module actions this.$axios.

So not sure what my question really is :-)
I'm not necessarily expecting all of those nuxt specific issues solved by vuex-simple - but as it's a really nice project I'd love to use it with nuxt... so I wanted to start a discussion on how nuxt support could be improved vs. just highlight the limitations I run into with the current state (2.1.0).

(I might be able to provide an example app in a few days once the nuxt <> TS support has been finalised)

@sascha245
Copy link
Owner

Hi @hartmut-co-uk,

I would be quite interested in adding more support for nuxt, so I am open to any ideas you might have.
Concerning the classic mode, as it has been deprecated, does that mean that only the modules mode will be available in the future?

Anyway, I will have to test out multiple things for both points you pointed out, though I won't be able to do anything for now as my PC broke down today...

@sobolevn
Copy link
Contributor

I guess there should be a custom plugin for nuxt.
I have also spent a lot of time integrating too different DI technologies in one project (I am talking about inject() and vue-typedi)

You can read more here: sascha245/vue-typedi#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants