Coder Social home page Coder Social logo

dongbao-state's People

Contributors

qweasd1 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dongbao-state's Issues

Feature: let state & reducer can be loaded dynamically

we need this feature for performance consideration, e.g. you can split your application logic into separate js file and these file will be loaded dynamically. This will boost the bootstrap performance for your application.

To implement this feature, we might need to do the following things:

  • add a new field (dynamical) on stateConfig
  • add a new reset action in stateConfig processing, which let you issue a ${path}/reset event and the state is set to its initial state
  • call the reset for dynamically added state
  • also, can remove state and reducer

Feature: support stateConfig inherit

We need this feature since we want our stateConfig can be reused to create more state instance and we want to avoid the {...stateConfig} which might be time consuming

  • check in our codebase to see if we can use stateConfig as prototype of other stateConfig
  • we might also need to give a helper method to help inherit

Feature:add methods & factories on state definition

methods is functions you can add on state, which accept states from your choice and return any value immediately, we can use this to do define some helper methods which leverage data on state.

Factory is just the factory to create function

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.