flux Questions
1
Solved
I'm having a tough time getting my reducers to be hot swapable.
I'm using Webpack and react-transform-hmr. With this, all of the CSS and the components are hot loaded when I save, but when I try ...
Mazuma asked 12/12, 2015 at 18:58
1
Solved
I understand that I need a emit.change() dispatcher, to let all components know that something changed inside the store. But I dont understand why I need to dispatch actions rather than calling sto...
Westernmost asked 10/12, 2015 at 13:58
7
Solved
I am coding a simple app on reactjs-flux and everything works fine except I am receiving a warning from reactjs telling me that I am calling setState on unmounted components.
I have figured out th...
Asbestos asked 20/8, 2015 at 14:39
1
Solved
Is there a way to cancel an action or ignore it?
Or rather what is the best/recommended way to ignore an action?
I have the following action creator and when I input an invalid size (say 'some_st...
Casto asked 9/12, 2015 at 17:3
2
Solved
I'm trying to replace a Backbone.Marionette App to React and am facing difficulty thinking about query params. I think I'm missing a really simple peace in understanding this pattern so I apologize...
Organelle asked 25/8, 2015 at 15:56
1
Solved
I want to use some abstraction in the creation of my React components. For example:
class AbstractButton extends React.Component {
render() {
return (
<button
onClick={this.props.onClick}
...
Lamrouex asked 24/11, 2015 at 13:10
4
Solved
What is the general practice of setting the initial state of the app with isomorphic applications? Without Flux I would simple use something like:
var props = { }; // initial state
var html = Reac...
Burkitt asked 6/12, 2014 at 21:41
2
Solved
From the discussion here it seems that the state of Redux reducers should be persisted in a database.
How does something like user authentication works in this instance?
Wouldn't a new state obje...
Suzetta asked 16/11, 2015 at 0:2
2
Solved
I've been struggling for hours to finding a solution to this problem...
I am developing a game with an online scoreboard. The player can log in and log out at any time. After finishing a game, the...
Gyrostabilizer asked 3/10, 2015 at 18:11
2
Solved
In response to a state change, I want to trigger another state change. Is that inherently a bad idea?
The specific sort of scenario is that the component is modeled as a state machine that renders...
Musetta asked 22/10, 2015 at 20:31
0
I have a react app where I'm using alt for the flux architecture side of things.
I have a situation where I have two stores which are fed by ajax calls in their corresponding actions.
Having re...
2
Solved
When you use Node's EventEmitter, you subscribe to a single event. Your callback is only executed when that specific event is fired up:
eventBus.on('some-event', function(data){
// data is specif...
Amado asked 20/6, 2015 at 15:23
1
Solved
I am using reactjs and the flux architecture in a project I'm working on. I am a bit puzzled by how to break up nested data correctly into stores and why I should split up my data into multiple sto...
Tarratarradiddle asked 13/10, 2015 at 15:46
2
Solved
I'm a bit stuck thinking on how to implement a reducer where its entities can have children of the same type.
Let's take reddit comments as an example: each comment can have child comments that ca...
Stigmatism asked 26/9, 2015 at 14:22
1
I've been working with optimistic updates in a React+Flux application and saw two things:
What happens if a user attempts to close the window when exists some uncompleted actions. For example in ...
Mamiemamma asked 7/8, 2015 at 22:33
2
Solved
I've been learning React and Flux over the past few months, and one thing I've not yet dealt with is displaying error messages to users. Specifically, error messages that occur as a result of an aj...
Masque asked 5/8, 2015 at 3:1
1
How/Where can I dispatch actions periodically? Using recursive setTimeout to make a countdown.
Taken from the example, something similar to this:
// Can also be async if you return a function
exp...
Circadian asked 21/7, 2015 at 17:39
1
Solved
I'm trying to build a complex fully-dynamic app with Redux. I mean my App has lots of dynamic-generated forms with generated fields-components on-the-fly. I want to store in my Redux-store visual d...
Janeth asked 17/8, 2015 at 15:9
1
Solved
I have sign in component, which should be available for unauthenticated users. And right after the authentication this component should become unavailable.
var routes = (
<Route handler={App}...
Nurse asked 27/9, 2015 at 3:25
2
React encourages the use of stateless components as much as possible and have a stateful parent component managing them.
I understand that this can make the stateless components more reusable, and...
1
Would it be safe to store an API token returned by an authentication call in a Flux (specifically, Redux) store? I've used Webpack to compile all assets in the project, which I believe means the st...
1
Solved
A Egghead tutorial teaches it like this:
var React = require('react');
var Router = require('react-router');
var routes = require('./config/routes');
Router.run(routes, function(Root){
React.ren...
Jolin asked 20/9, 2015 at 18:31
4
I'm studying Flux and I think I understood the workflow:
View -> Action -> Dispatcher -> Store -> View
However, I didn't quite understand where am I supposed to populate the initial ...
Xerophilous asked 23/7, 2015 at 13:47
1
I'm trying to understand how to resolve dependencies among stores. The problem is I have a comprehensive data tree, which need to be fetched from server with the chain of request that depends one o...
Nuncle asked 12/9, 2015 at 10:6
2
Solved
I saw this line as an answer to another question on here:
"componentWillMount should be componentDidMount, or else you'll leak event emitters in node."
and I don't really understand it. Can someo...
Epaulet asked 17/6, 2015 at 17:37
© 2022 - 2024 — McMap. All rights reserved.