Giter VIP home page Giter VIP logo

vuexok's People

Contributors

omgimalexis avatar spb-web avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vuexok's Issues

TypeError with Vue 3

Hi Vyacheslav,

thanks for the hint over at Vuex-Typescript, because I was just looking for the right Vuex modularization and typing package, so this must be the best "bujaka jaka jak"-surprise I coincidentally came by this year! 🥳🎉

It directly felt right, very right, and after implementing it (but see below), checking a few other solutions, and reconfirming myself how messy module management (rootThis, rootThat, ...) still becomes even with latest Vuex 4, I'm convinced that your way is what Vuex itself should be doing - perfect! 😻

But does it really already support Vue 3? 🤔

Because after transforming my store into Vuexok magic, and in frenetic expectations of a new level of store, all I could get from it was the following, which makes me guess I somehow missed the Vue 3 flag/option/package. 🙃

TypeError: Object is not a constructor (evaluating 'new Vue__default['default']()')

Tested it with plain Vue 3 CLI and Vite - same result.

Btw., what's the story to the name of Vuexok, as maybe Vuexnov could make you even more a well deserved legend! 😹💦

Which is a proper way to re-use module inside other modules and keep types working?

There might be several scenarios when you need to reuse some module as sub module with separate state? which is the best way?
There are two options in my mind:

use function to return singleton or new module and use it as separate module but not as sub-module
keep config in separate variable which breaks auto-completes inside this config, so probably there should be separate method to get config from module or specific type to use with plain object config variable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.