Giter Club home page Giter Club logo

vuex-toolkit's People

Contributors

banderror avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

vuex-toolkit's Issues

Support passing options

Support passing options to vuex-toolkit so the user could redefine some default values or behaviour:

  • how namespaces and message types are constructed (separators etc)
  • logging
  • error handling

Simplify the lib's type system

Simplify internal type system of vuex-toolkit.

"Variadic tuple types" announced in TypeScript 4.0 can help with that, particularly with typing selectors and getters.

Extend `ActionContext` in a backward-compatible way

Extend ActionContext in a backward-compatible way. Users of vuex should be able to use normal vuex actions with vuex-toolkit without the need to do any modifications to them.

  1. Add send and put (or maybe send and resolve) methods to commit mutations, dispatch actions and send bypass messages -- all in both sync and async ways. Naming to be decided.
  2. Add get method to call getters in a typed way.

Decouple vuex-toolkit from sagas and extend Store in a backward-compatible way

Decouple vuex-toolkit from sagas. Implement vuex saga plugin as a vuex-toolkit-saga "extension" - a separate package.

Create an extended Store interface. Something like

interface VuexToolkitStore<S> extends Store<S> {
  run: RunSaga;
  send: SendMessage;
}

Create 2 versions of the send() method (maybe send and put, or send and resolve - naming to be decided). One should be synchronous and return void, the other one should be async and return a Promise. Both should work with all kinds of messages that vuex-toolkit supports.

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.