Jimmy Jia

Results 401 comments of Jimmy Jia

@justjake I think what you're talking about is best handled with a library built on top of a Flux framework, as opposed to part of a Flux framework itself. I...

@Shearerbeard Just Alt's implicit constants would be sufficient, no? http://alt.js.org/docs/actions/#actionconstant I thought there might have been weird circular dependency issues, but on second thought there aren't.

I really don't think data sources and queries/state sources map to each other that well. Queries are exactly the same as action creators and were there to get around a...

@goatslacker Marty v10 was a big breaking change release, and only a month ago. I don't think there are any further such changes coming up (and I wish we were...

FWIW I like the approach you took with Alt's web and native support both being in https://github.com/goatslacker/alt, rather than having https://github.com/martyjs/marty-lib, https://github.com/martyjs/marty, and https://github.com/martyjs/marty-native. For one thing, I have no...

@jhollingworth https://github.com/goatslacker/alt/pull/284 shows a pretty cool way to do isomorphism with singletons, though. You gather all your remote data loads, wait for them all to complete, dispatch them into stores...

Looking at the actions thing a bit closer, it looks like maybe the idiomatic way to handle actions with Alt differs from with Marty, e.g. - https://github.com/goatslacker/alt/blob/master/examples/todomvc/js/actions/TodoActions.js - https://github.com/martyjs/marty-todomvc/blob/master/app/actions/TodoActions.js I...

@jhollingworth I think you can combine the best of both for isomorphic rendering. 1. On initial request, synchronously: 1. Initialize stores. 2. Do initial render. 3. Intercept all remote fetches...

> The trick for this to work is that instead of invoking a generic action creature method, the equivalent of the `fetch` object would have to specify which constant to...

Refining the actions proposal from Gitter convo, this is a part yak shaving and part bikeshedding but here goes - Actions/constants in Alt generally look very nice to work with...