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 :

1455 questions
-1
votes
1 answer

how can we share react components across repositories

I have three different repos based o React.js and flux architecture(actions/store/utils model) on bitbucket and I want to use some UI components across these repos. What could be the best way to achieve this, and maintain versions if possible.
-1
votes
1 answer

Is this Flux architecture?

This is how I've been organizing my React / Redux projects because it's how they did it in the tutorial I followed. Is this what Flux architecture is and if not what would you call this? First I call a function in my component that's defined in the…
user967451
-1
votes
1 answer

Using Redux how do you stop the switch in the reducer growing?

Using Redux how do you stop the switch in the reducer growing? I'm using angular 5 and ng2-Redux. I'm using the reducer and a switch but I'm worried that the switch will grow as I add more action types. Currently I'm trying to use a red combine…
AngularM
  • 13,932
  • 27
  • 78
  • 151
-1
votes
1 answer

React-Flux Load initial state

I'm trying to make an Ajax request in al React Flux app with axios and I get data after state is set. I have this code in root app: InitialData.getInitialPosts(); The API request it looks like this: let PostsApi = { getAllPosts(){ …
Carnaru Valentin
  • 1,327
  • 11
  • 21
-1
votes
2 answers

React Flux Webpack

Trying to build an extremely simple CRUD app with Flux. Why is this console.log not working in my ServerStore.js register function? It seems like webpack is not even bundling it? ServerStore.js var AppDispatcher =…
Franklin Noel
  • 109
  • 2
  • 12
-1
votes
2 answers

ReactJS with Flux architecture generating large JS files, what is the best practice?

I've started using React with Flux architecture for full functional frontend application, and I really liked approach JSX and Flux , but the main issue is that when I'm building JSX files using Gulp, Babel and Uglyfy I'm getting about 1mb minified…
-1
votes
2 answers

FLUX with multiple independent stores/dispatchers

I'm building a App with React and Flux/McFly and want to have to INDEPENDENT Stores but my McFly Actions are passed to EVERY Store i created with mcFly - despite i use seperate files to import the mcFly Instance /stores/msg/mcfly.js: var McFly …
DoubleU23
  • 118
  • 1
  • 7
-1
votes
1 answer

React Flux update loop with websocket

I have an application which uses react with flux and a webserver that stores all the data and notifies all the subscribers when an update has occured through a websocket. My problem is that when my component triggers an action the new state is sent…
vato
  • 329
  • 1
  • 11
-1
votes
1 answer

Flux architectures nested and non-singleton stores

I get all my data on page load and the JSON looks as follows: { users: [ { userId: 1, messages: [ { messageId: 1, lines: [/* array of lines */] }, { messageId: 2, …
Paul Nispel
  • 661
  • 6
  • 10
-2
votes
2 answers

how to close child of other components?

enter image description here When I open one of three copmonent A child open,I want to close two others child if they are open.
Mona
  • 1
  • 3
-2
votes
1 answer

Can someone give an example of an app that is extremely well suited to Flux/Redux?

If the example could help me understand the answers to the following questions I would be very happy: Should you use a Flux/Redux store for data that is unlikely to change throughout the apps lifecycle? And if most of the data in your app is like…
JasoonS
  • 1,352
  • 2
  • 12
  • 25
-3
votes
1 answer

Saving Settings in Reducer & Accessing them from another Reducer?

I have a settings reducer: state = { fontSize: 30, fontWeight: 400, ...etc. }, I have a different reducer, which needs access to the fontSize of the settings-reducer. I don't know now how to access this state now. What would be an…
-4
votes
2 answers

What should i do with "TypeError: store.addListener is not a function" error

I write a react program with flux architecture but when I want to run it, this error occurred can you help me what should I do to solve this problem The error picture
-6
votes
2 answers

React/ Flux Frontend and Meteor Backend

I have been using React and Flux for about two months now and its been great with Flux unidirectional data flow. I have just heard of Meteor and it's great with its publish-subscribe and DDP. I have a project at hand where I have created some of my…
ponty
  • 1
  • 5
1 2 3
96
97