Questions tagged [flummox]

idiomatic, modular, testable, isomorphic Flux

7 questions
5
votes
0 answers

React - Authentication process : Cannot dispatch in the middle of a dispatch

I have started to play with react via flummox, react-bootstrap and react-router. I am trying to create a basic isomorphic CMS out of it for my websites. Context : In terms of authentication, each user has a list of capabilities and each component…
5
votes
1 answer

Where to fetch initial state when using flummox (flux)?

I'm trying to figure out where to load initial state, when using flummox, a flux library. I've see it done a few ways, but I'm curious if there's a recommended way to do it. Lets say you've got some todo items that you've saved in local storage or a…
Ryan
  • 7,733
  • 10
  • 61
  • 106
1
vote
0 answers

Flux / Flummox: Component stops listening the Store after first router transition

I've just started using flummox and I'm a little bit flummoxed :) Here is my use case. App Layout
In my App I…
Alex Fedoseev
  • 1,135
  • 11
  • 18
1
vote
1 answer

Understanding how to implement a Flux architecture using Flummox

I currently have a very simple React app that uses state to determine a couple of views. Clicking on the submit element fires a simple call to an endpoint passing either login or registration credentials. I could continue down this road to use React…
chris_s
  • 1,051
  • 4
  • 14
  • 28
0
votes
1 answer

Handling socket connections in a flux application

Situation: I am building a web service using Reactjs and Flummox that will connect to a simple socket server using Socket.io. It will need to keep track of multiple connections per user on their dashboard and am wondering about the best way of doing…
Julien Vincent
  • 1,210
  • 3
  • 17
  • 40
0
votes
2 answers

Isomorphic Flux - get data on server for components

In my recent applications I've been using Flux (with flummox - http://acdlite.github.io/flummox) on server per request to make isomorphic rendering. Generally it looked as follows: app.use(createFluxPerRequest); app.get('/some-route', (req, res) =>…
Kosmetika
  • 20,774
  • 37
  • 108
  • 172
0
votes
1 answer

Accessing react-router from flummox action/store

I want to be able to make an API call in a Flummox action and transition differently depending on the response. I can pass the router into the action call but am looking for advice on a potentially better way. UPDATE: The correct answer is below but…
kjs3
  • 5,758
  • 8
  • 34
  • 49