News for hackers. Stuff that matters.

goldendase

Ask HN: Isomorphism with a marketplace built with este.js

I'm currently leading a project that's in the planning stages which involves building out a marketplace with highly interactive mini-apps (think something like Khan Academy). We're hoping to get away with making the entire thing an SPA as there's a lot of real-time, interactive user data the user sees even outside of the mini-apps as they're browsing the marketplace. One thing that's a bit of...

( Read More... | no comments | on HN )
Re:Introduction to Facebook's Flux architecture on Monday February 23, 2015 @05:49PM (#9097573)
Right, my question isn't where the call should be made though. Makes perfect sense in the actions. My question is if the call fails how do I post a notification to the view itself to communicate to the user that something went wrong? Actions can't post back to Views, so... Send event to store, store passes along the error to view? It's an elegant system otherwise, but this really clumsy to me.
Re:Introduction to Facebook's Flux architecture on Monday February 23, 2015 @05:31PM (#9097487)
I find the idea of Flux fascinating, but one thing I'm a little curious about is where error feedback fits in here... If an AJAX query fails, or something fails validation, how does this information make its way back to the view? If it happens at the action dispatch level, you still have to pass the event through the store? That seems a little... Odd to me.