Coder Social home page Coder Social logo

deanrad / antares Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 0.0 2.18 MB

Structure your applications. Focus on causes ⟺ effects. Waste as little time as possible.

Home Page: https://deanius.github.io/antares/

License: MIT License

JavaScript 1.35% HTML 11.05% TypeScript 87.60%
meteor meteorjs redux redux-observable rxjs streaming websockets

antares's People

Contributors

deanius avatar deanrad avatar greenkeeper[bot] avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

antares's Issues

addFilter should have an alias `filter`, with similar syntax to `on`.

Current API:
The first argument to addFilter is the filter function. An optional 2nd configuration argument allows you to specify an action filter in the actionsOfType field.

Desired API:
The existing addFilter API does not change its behavior.
A new filter method will take the ActionFilter first, and create a predicate function which will only execute the provided filter function if that predicate returns true (see existing behavior, tests).

The following should be equivalent:
New way:
filter(/room/, ({ action }) => {})
Legacy way:
addFilter(({ action }) => {}, {actionsOfType: /room/})

The legacy way can be useful when your filter will see all actions - this is the default behavior if a configuration object is not provided in a 2nd argument. The new way allows for rules to be independently added on 'shards' of similar actionTypes.

Accept complete and error props In 3rd argument to `on`

A handler attached via on may want to have its completion and error notifications be of a certain type. Currently the type property of the 3rd argument specifies how to wrap next notifications, this issue would bring it full cycle, so the author would not need to resort to concat and processResults: true as is necessary in a case like below.

 return concat(
        from(goodLines.map(line => ({ type: "goodLine", payload: line }))),
        of({ type: "linesDone" })
      )
    },
    { processResults: true }

https://gist.github.com/deanius/5aba8edf0f102a6269dfbf66a325e96b

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.