Git Product home page Git Product logo

fluxify's People

Contributors

arqex avatar frewsxcv avatar reflog 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  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  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  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  avatar  avatar  avatar  avatar  avatar

fluxify's Issues

swallowing errors

Fluxify is swallowing errors.

Even a simple example like this does not show the error in the console. It does not display the "oops" is not defined error. This makes developing with fluxify very difficult if no errors are displayed.

<!DOCTYPE html>
<html>
  <head>
    <script type="text/javascript" src="http://rawgit.com/arqex/fluxify/master/build/fluxify.js"></script>
    <script>
      var dispatcher = fluxify.dispatcher;

      dispatcher.register( function(){
        console.log( "here" );
        oops.oops();
        console.log( "not here" );
      });

      dispatcher.dispatch( "test" ); 
    </script>
  </head>

  <body>
  </body>
</html>

Server-side rendering via renderToString?

I was just looking through a few Flux implementations and stumbled upon fluxify. One major problem I have with Flux is the difficulty of building isomorphic apps. With React (no Flux) it's quite easy because you can pass the props to renderToString and set the state directly on the component.

But with examples like Chat app you don't store the data on components; it's delegated to the stores. As a result, I cannot generate a component's markup since I can't pass the data via props anymore.

Does fluxify have a way around this problem?

Thanks.

Error in xEmitter.off

You are not able to turn off a handler due to a bug on line 45:

44 for (i = listeners.length - 1; i >= 0; i--) {
45 if( listeners[i] === listener )
46 listeners.splice( i, 1 );
47 }

Since the handler is pushed in as { callback: listener, once: once } the check needs
to be for listeners[i].callback.

No git tag for 0.2.2

I'd like to see a diff of what changed between 0.2.2 and 0.2.1, but there's no git tag for 0.2.2

Store mixins?

Anyway I can add common functions to a store so that I can use them inside the actionCallbacks?

Passing 'undefined' to 'doAction' should throw error

I propose that flux.doAction(undefined) should throw an error. This gives the developer a faster debugging feedback cycle by getting an error immediately whenever an invalid value is passed as an action name. Thoughts?

Assigning in registered callback

In this fluxify, you use the updater in action callbacks to mutate the store values.
E.g.

actionCallbacks: {
        changeName: function( updater, name ){
            // Stores updates are only made inside store's action callbacks
            updater.set( {name: name} );
        }
    }

In facebook ( excerpt below ), you can mutate the store value in the callback.

//From https://facebook.github.io/flux/docs/dispatcher.html
flightDispatcher.register(function(payload) {
  if (payload.actionType === 'city-update') {
    CityStore.city = payload.selectedCity;
  }
});

So how do we update store values using just the store registered callback 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.