Questions tagged [flux]

An application design paradigm used as a replacement for MVC, pioneered at Facebook by Jing Chen

Flux is an application design paradigm used as a replacement for the more traditional pattern.

It complements React's composable view components by utilizing a unidirectional data flow. It's more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code.


Popular implementations :

1614 questions
0
votes
1 answer

Angular and Flux can they work together?

Flux is a unidirectional data flow originated in the React team, it hold many benefits (Undo/Redo, Easy to test, one State to the app, and more) and it would be nice to combine it with AngularJs. Victor Savkin wrote a blog post on how to implement…
gilamran
  • 7,090
  • 4
  • 31
  • 50
0
votes
1 answer

React Flux - can not dispatch in the middle of a dispatch

I have a dropdown with lists. When a list is clicked, it is displayed in a table on the other side of the page. Whenever a new list is created, I want to display it just as if it was clicked(as shown in the code below). However, in order to display…
bsky
  • 19,326
  • 49
  • 155
  • 270
0
votes
1 answer

Bug with Alt.js and react. State is not kept

I'm using this class to display and filter a list. This class also trigger a search. My problem is it seems that the setState function is not immediate. FriendActions.getSearchList(this.state.search); If I comment this actions. The console.log will…
bokzor
  • 413
  • 7
  • 19
0
votes
1 answer

Why is the store did not see action in reflux?

I get the following error actions.toggleMenu is not a function I create a action module.exports = Reflux.createAction([ 'callAi', 'logout', 'fullScreen', 'toggleMenu', 'showSidebar' ]); I create this store actions =…
ZPPP
  • 1,567
  • 2
  • 18
  • 27
0
votes
1 answer

Flux: Uncaught TypeError: store.off is not a function

While switching Button on the Website built with this mixin, it's creating Error and that is : Uncaught TypeError: store.off is not a function I have added View and store file with the post Below.The Error is occurring when I am pressing the…
Istiak Morsalin
  • 10,621
  • 9
  • 33
  • 65
0
votes
1 answer

How can I avoid global state when programming with React?

Tons of examples, describing React and Flux uses global variables: global Dispatcher, global Store and etc. Is there any way to proper inject dependencies to react components? There are some articles on the web describing how to use Dependency…
Artur Eshenbrener
  • 1,850
  • 2
  • 17
  • 24
0
votes
1 answer

flux controller-view not subscribing for the event change in store

I want to show a list of messages when the page is loaded. i call action and addChangeListener to subscribe for changes in componentDidMount, hoping i can get the data back from server from store, though addChangeListener is called, but the callback…
shangsunset
  • 1,585
  • 4
  • 22
  • 38
0
votes
0 answers

Alt data dependency between actions not stores

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 read the alt getting started page on data dependencies…
dougajmcdonald
  • 19,231
  • 12
  • 56
  • 89
0
votes
1 answer

Flux stores changing other stores

I'm creating an app with Flux and React, which is kinda of a game... and this app has 3 stores: GameStore -> contains the game status like finished, how many times the player won, and this stuff CounterStore -> Is a countdown store that is self…
Mauricio Soares
  • 3,452
  • 1
  • 17
  • 16
0
votes
1 answer

Collect data from child components

For my first React app I need to display a menu hiearchy with group-items, read-items and write-items (there are more, but that's enough for this example). Each read-item and write-item are connected to a data point in a JSON API: each item has a…
Jonatan
  • 3,752
  • 4
  • 36
  • 47
0
votes
1 answer

typo3 flux select multiple pages suggest wizard

with this I can select ONE page. But how can I select MULTIPLE pages, like it is done at the Menu-Content-Items. tryed: field.select…
Eumolpius
  • 87
  • 9
0
votes
0 answers

ReactJs & Flux: Fetching data when routing

Tools: Reactjs 0.14.0,Vanilla Flux, React-Router My question are all in bold. Generally, should it only be the top-level component(controller-view) where all data is loaded into the store?(in the componentDidMount method) I ask because I've been…
Nick Pineda
  • 6,354
  • 11
  • 46
  • 66
0
votes
0 answers

React JS + ALT (Flux): Understanding Invariant Violation findComponentRoot(..., .0.1.1.0.4.2.0.1.1): Unable to find element

I am using REACT JS with a FLUX IMPLEMENTATION called ALT. I started with a working React Component: ConfirmEditModal = React.createClass({ getInitialState(){ console.log('ConfirmEditModal - getInitialState'); var state =…
preston
  • 3,721
  • 6
  • 46
  • 78
0
votes
1 answer

flux constants - multiple files or single file?

Should i have one constants file for the whole app or split it one for each coresponding store , action ? My thought's are one for the whole app?
user3224271
  • 1,214
  • 3
  • 13
  • 22
0
votes
1 answer

Flux architecture - how to know in controller when async event from action is completed

I'm learning flux architecture. I'm trying to add new user. When user clicks save button on UI, in my controller I call an action creator's createUser function to initiate async request: addNewUser: function () { …
Max Koretskyi
  • 101,079
  • 60
  • 333
  • 488