reactjs-flux Questions

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

4

Solved

I'm rewriting my app to use Flux and I have an issue with retrieving data from Stores. I have a lot of components, and they nest a lot. Some of them are large (Article), some are small and simple (...
Jowett asked 6/9, 2014 at 14:16

6

Solved

I'm new to react and flux and I am having a hard time trying to figure out how to load data from a server. I am able to load the same data from a local file with no issues. So first up I have this...
Relativity asked 6/10, 2015 at 22:11

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

6

Solved

Should the stores maintain their own state and have the ability to call network and data storage services in doing so ...in which case the actions are just dumb message passers, -OR- ...should th...
Awesome asked 2/9, 2014 at 19:10

3

Solved

I have a sortable list in React which is powered by jQuery UI. When I drag and drop an item in the list, I want to update the array so that the new order of the list is stored there. Then re-render...
Optimism asked 19/4, 2015 at 2:30

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

Solved

Thus far, the extent of my knowledge about how properties are passed from one component to another via parameters is as follows //start: extent of my knowledge Suppose there exists some state var...
Homogeny asked 2/10, 2015 at 6:18

0

I have a list of products and when particular product is clicked it opens a detail view page. I am using "this.history.goBack()" which is triggered by a button to go back to list of products. My p...
Manumit asked 27/9, 2015 at 18:42

2

Solved

As a follow up to the Store lifecycle question, In a typical web app its nice to have a shortcut to the current application state via the URL so you can re-visit that state and use the forward an...
Exhortative asked 13/5, 2014 at 7:0

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

2

Modals and Notifications are components that are appended to the body. So they work little different than normal components. In my App, I can think of two ways of implementing them and I am not sur...
Kilimanjaro asked 17/12, 2014 at 19:10

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

1

I would like to perform some initial data loading when my first route is rendered (for example, i want to load a list of news articles) I made a component called News.js which renders the articles...
Herwick asked 8/9, 2015 at 16:39

6

Solved

I'm creating a react.js application with flux architecture and I am trying figure out where and when a request for data from the server should be made. Is there a any example for this. (Not TODO ap...
Mady asked 29/10, 2014 at 14:4

1

I've recently learned how to code in React and how to structure the code using Flux. Unfortunately Firebase doesn't play to well with Flux and I need to set up a quick and easy back-end up for a pr...
Obit asked 1/9, 2015 at 15:37

2

This is more of a "whats your opinion/Am I correct in thinking this?" question. Trying to be as strict as possible while understanding Flux, I was trying to figure out where XHR calls are made, we...
Bora asked 21/1, 2015 at 5:53

1

So I have a big component that would be my form: <form> <FirstComponent value={this.state.firstValue}/> <SecondComponent value={this.state.secondValue}/> {more components here...
Gonadotropin asked 30/7, 2015 at 23:42

1

Solved

I'm just starting to use flux (with redux for now) and am wondering how relationships are supposed to be handled. For an example we can use Trello that has boards with columns that contains cards. ...
Towers asked 26/7, 2015 at 20:14

2

Solved

I have my own opiniated way on how to use React and am building my own framework, inspired by Om. I am implementing something a bit similar to the Flux architecture, with stores that can update the...
Iona asked 10/8, 2014 at 12:6

1

Solved

Here's an example that uses Backbone with React. He defines a Model: var _todos = new Backbone.Model(); And then adds two functions to it: var TodoStore = _.extend(_todos, { areAllComplete: fun...
Himation asked 10/7, 2015 at 15:31

1

I know this question has been asked more times in different flavours, but I didn’t find the "right" answer yet (maybe there just isn't one), so I’m looking for the "most Flux" one. Simple example:...
Rhigolene asked 26/6, 2015 at 15:19

2

I try to use jspm with reactjs. I worked fine. But when I integrated it with flux package from npm. Then it always threw Dispatcher is not a constructor error. My code as below AppDispatcher.js ...
Though asked 24/6, 2015 at 6:26

2

My team is currently working on a large application being written in ReactJS using Facebook's Flux architecture. It is still in its infancy right now but it is going to grow big very soon. It will ...
Jiggle asked 29/4, 2015 at 13:28

© 2022 - 2024 — McMap. All rights reserved.