Questions tagged [fluxible]

Fluxible is a pluggable, singleton-free container for isomorphic Flux applications.

Fluxible is a pluggable, singleton-free container for isomorphic Flux applications.

Chat

60 questions
0
votes
1 answer

Fluxible-router redirect form one route to another

We have two routes in fluxible-router. I need that if legacyDek route is accessed, then after an action completed, it would redirect to the deck route. deck: { path: '/deck/:id(\\d+|\\d+-\\d+)/:stype?/:sid?/:spath?/:mode?/:theme?', …
vassilsha
  • 21
  • 3
0
votes
1 answer

fluxible rehydrate method is not being triggered on route change

Will fluxible app.rehydrate be called on every router change? When is app.rehydrate getting called in the whole fluxible application lifecycle?
Abhilash
  • 196
  • 11
0
votes
1 answer

How can I make my React child components render even if a prop is missing

TLDR; I need to be able to render child components in React even if a property of this.props is missing. I have an React app built with Yahoo's Flxubile. The app fetches data from a Wordpress site with WP REST API. Sometimes an image might be…
sebastiansson
  • 177
  • 14
0
votes
1 answer

React Js Performance

I am using react(V0.13.3),flux(V2.0.3) I have a component that has many inner components. While the inner component getting updated, the browser is going off. I am unable to scroll click and some time I get a pop up saying: unresponsive script…
Vikram Jakkampudi
  • 502
  • 1
  • 3
  • 16
0
votes
1 answer

Side effects in Fluxible?

Here's what I'm trying to do---add a listener to a fluxible event to do an ajax call. In Redux, this is called a side effect and there are several ways of doing this (ex: create "side effects" using redux-saga, which are just listeners that do…
U Avalos
  • 6,538
  • 7
  • 48
  • 81
0
votes
0 answers

In fluxible, how to keep logged in session info in user store on page refresh

I'm having trouble persisting authenticated sessions to the UserStore on page refresh with fluxible. In my case, I update the user store on login and everything is fine as they click around the page - but if they refresh the page - it loses the…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
0
votes
1 answer

fluxible run dev is firing twice, how should I configure the dev start script with webpack and nodemon?

I'm returning to an old fluxible project I started a while back and when I use npm run dev it seems to be starting twice and is throwing an error. It used to work - what is the configuration that's causing this error? Is the standard fluxible…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
0
votes
2 answers

Multiple dropdowns in ReactJS, only one open at a time

I have two dropdowns being passed in as props to components. I can control both with seperate states but I think this can all be done with one state? Header import React from 'react'; import DarkLabel from './DarkLabel'; import HeaderDropdown from…
imperium2335
  • 23,402
  • 38
  • 111
  • 190
0
votes
1 answer

Passing a model from PHP/Laravel to ReactJS Fluxible store

In my TaskController.php I have: namespace Api; use Repos\EnquiryRepo; class TaskController extends \BaseController { protected $repo; function __construct() { parent::__construct(); $this->repo = new EnquiryRepo(); …
imperium2335
  • 23,402
  • 38
  • 111
  • 190
0
votes
1 answer

Fluxible createStore module not found/cannot be resolved?

I am getting an error in fluxible when attempting to create a store, specifically UserStore: Error: Cannot find module 'fluxible-app/utils/createStore' How do I get around this? The project/code I am working with is the…
Rolando
  • 58,640
  • 98
  • 266
  • 407
0
votes
1 answer

ReactJS Do something only after the action has completed

I have: onKeyPress(id, e) { if(e.key == 'Enter') { this.saveField(id, e.target.value); } } onBlur(id, e) { this.saveField(id, e.target.value); } saveField(id, date) { this.setState({ …
imperium2335
  • 23,402
  • 38
  • 111
  • 190
0
votes
1 answer

fluxible - my store is receiving data, but my component is not able to talk to the store

Basically, on loading the home page, an action is triggered that grabs data from the database in JSON form. It dispatches a SUCCESS that my store receives and updates the state of an object, posts. When I console.log() from the store, I see the…
user1354934
  • 8,139
  • 15
  • 50
  • 80
0
votes
1 answer

Populating Multiple Stores and Waiting

Consider an isomorphic application based on Flux, and using the Fluxible library to do it. You have a React email application, with a list of messages on the left, and the current open message on the right. Your router triggers the 'SHOW_POST'…
simbolo
  • 7,279
  • 6
  • 56
  • 96
0
votes
3 answers

Trying to understand Flux stores - so if the state is held in the store, is this also where I do database calls?

I'm trying to build a contacts list app to teach myself reactjs, and I am learning fluxible now. 1) A new contact is entered. Upon submit, a newContact object is created that holds: firstName lastName email phone1 (can add up to 3 phones) image…
0
votes
1 answer

Fluxible Context methods hang

I'm facing a situation where the methods in Fluxible Action context seem to hang. I think my trouble stems from the fact that I'm writing in ES5 and I've had to take my best guess at how the ES6 examples on Fluxible's homepage translate (link and…
banerjs
  • 538
  • 6
  • 14