Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jeffrey Morgan
    @jeffdm
    :)!!! good to hear!!
    what do you primarily use kitematic for?
    also - if you could only have one of {Dockerfile, docker-compose} which one would be more important?
    also, contributions always welcome :)
    just curious - plans for both! just wondering which is moore importabt
    Josh Girvin
    @girvo
    Dockerfiles would be more important for sure
    Jeffrey Morgan
    @jeffdm
    thx - by this do you mean building an image from a local Dockerfile?
    Josh Girvin
    @girvo
    Key part of our development workflow, as is docker-compose but we can do without that :) being able to build a local Dockerfile and run the image that is created would be amazing
    Jeffrey Morgan
    @jeffdm
    I see, good! thanks so much! does the Docker Hub auto build feature work for this?
    (in meantime)
    Darío Javier Cravero
    @dariocravero
    @jeffdm this is the result of a good while building on react + flux and iterating on its tooling to get the process as smooth as possible. It uses browserify, babel and mocha. It provides a playground for both: the browser and (now) iOS. Testing is done following this guidelines - I'll port that to flummox soon although it should be way simpler than marty.
    Seb Insua
    @sebinsua
    I am wondering what is the best way of writing isomorphic flummox apps that store authentication tokens within localStorage? Is there some kind of isomorphic library for interfacing with this, since obviously by default Node does not support it.
    Darío Javier Cravero
    @dariocravero
    Seb Insua
    @sebinsua
    I guess it would, I just want to make sure that I am not doing something crazy and other people do similar things.
    Sergey Zelenov
    @tadjik1

    hey guys.
    I have a problem with server-side rendering app with flummox.
    this is the code - https://github.com/tadjik1/soundcloud-player

    and this is the problem: acdlite/flummox#186

    maybe someone met it?

    Darío Javier Cravero
    @dariocravero
    hey @tadjik1 how're things?
    J u l e n
    @julen
    Hey there, at the time of mounting my component, I have some initial data already available which I'd like to load into my Store's state, therefore saving an async request.
    Right now I'm firing an action within my component's componentWillMount() method to load this initial data: the action gets dispatched with the payload but the state of the Store doesn't get updated. This makes me wonder if this is the right approach, and if not, would someone recommend an alternative? TIA
    tayloriex
    @tayloriex
    How do you implement a loading action in Flummox?
    I have an API call that I would like to show a message while it is loading
    Darío Javier Cravero
    @dariocravero
    @julen if you have the data right after the app is created you can either set the stores' states before loading any views, or, probably more aligned to flux you could fire the action yourself
    Darío Javier Cravero
    @dariocravero
    @tayloriex I guess you have to do it yourself since as far as I know there's no abstraction for it in flummox
    marty has an abstraction around fetching that essentially keeps track of the state of stuff your store needs that's being requested by an asynchronous mechanism, like a call to an external service
    it works in sync with the container which lets you deal with pending, done and failed
    having worked with that abstraction for a while I think it's handy but I don't know if it's 100% needed
    Darío Javier Cravero
    @dariocravero

    In that implementation marty keeps track of every remotely fetched property of a store separately within the store, so, say your store holds a GitHub user with all its repos, you get the user and its list of repos separately with two separate fetches.

    If you were to do it yourself (probably a cleaner approach) you could have two stores, one for the user and one for the repos and hold an internal state for it that tells whether it has data or it's fetching it from a remote source. Your app would then be aware of that fact and you would get a "status" property in your store's state that you can now leverage within your views.

    J u l e n
    @julen
    @dariocravero thanks! actually I found my mistake (PEBKAC), and firing the action in componentWillMount()WFM
    Darío Javier Cravero
    @dariocravero
    @julen good stuff :)
    Darío Javier Cravero
    @dariocravero
    Josh Girvin
    @girvo
    Yes!!! I got Mocha, Sinon and Mockery working together with Flummox to unit test async actions, mocking classes and more :D
    Josh Girvin
    @girvo
    Hey, so if an Async Action is calling a service and handing whatever it receives (be it an error or real data) to the Store, should it await on the external service or should the Store await?
    Hugo Dozois
    @dozoisch
    @girvo the action should await.
    the store will received the "data_fecth"event or whatever onces it's fetched
    Jeffrey Morgan
    @jeffdm
    On the errors topic: where should we handle errors? should all errors go into stores or can we throw them in actions and catch them in views?
    Josh Girvin
    @girvo
    Yeah @dozoisch — sounds good to me
    @jeffdm — the actions are what are talking to the stores and the views just look at the stores themselves, so I feel it makes more conceptual sense for the errors to go into the stores which the views can watch for :)
    Darío Javier Cravero
    @dariocravero
    @jeffdm I agree with @girvo, Stores are responsible for that and, from my experience, it's better to trigger different actions for errors, as in, data_fetch_failed, so that the logic in the store is simpler to understand
    Patrick Burtchaell
    @pburtchaell
    Hey, I'm having an issue with listenToStores if anyone is around.
    Josh Girvin
    @girvo
    Hi all
    Having an issue with unit testing async actions — it’s not added to a Flux instace (obviously) so it complains about using the action dirctly
    You've attempted to perform the asynchronous action APIActions#sendRequest, but it hasn't been added to a Flux instance.
    Darío Javier Cravero
    @dariocravero
    @pburtchaell sorry for the delay, what's up?
    @girvo have you thought about mocking the app with the actions?
    Patrick Burtchaell
    @pburtchaell
    @dariocravero No worries. I got it figured out.
    Darío Javier Cravero
    @dariocravero
    @pburtchaell cool :)
    Johan Alkstål
    @johanalkstal
    So I'm looking at the Immutable-Store and I'm wondering, what's left to do with it? It says WIP?
    yujinlim
    @yujinlim
    is there any example projects that uses flummox?
    Morteza Shahriari Nia
    @mshahriarinia
    Anybody online?
    How does flummox take care of routes like ./todos or /todos/:id are these done by react-router or express Restful API? or some flumox magic?
    Chris Beckett
    @chrismbeckett
    @mshahriarinia I am using react-router
    My main application file setups up the router, routes, and any objects that I want on the overall application context (like the top-level Flux container). Then the router passes those props to my main applicaiton component, that puts them on the context so they are available to any component down the stack...