Data dodania Pytanie
2018-01-13 12:01 store defaultstate with redux observable middleware »
I am making a redux observable epic as middleware, and also want to provide a default state to store. At some places I have seen applyMiddleware as th...
(2) odpowiedzi
2018-01-06 12:01 Redux: How to pass an ID to the mapStateToProps function to get from the state an entity with that ID »
I have this container component: const TodoListContainer = connect(mapStateToProps, mapDispatchToProps)(TodoListComponent) I call it in this way: ...
(1) odpowiedzi
2017-12-26 19:12 Redux State Resets On Window Reload (Client Side) »
I have very large and complicated objects like userInfo, chatInfo, and etc as in objects & arrays with very large and nested information. The thin...
(6) odpowiedzi
2017-12-23 13:12 Dispatch Action right after state variable is set »
I have an initial redux state like this: { loggedInUserId: null, comments: [] } Here's how my React App looks like: class App extends Componen...
(4) odpowiedzi
2017-12-19 18:12 state in mapStateToProps is JSX! React / Redux »
I am a beginner in React/Redux and ran into this crazy problem where when I console.log the state of mapStateToProps(state), it logged some JSX. To el...
(1) odpowiedzi
2017-12-17 01:12 How to update 1 item in state with redux? »
I have a reducer and trying to update 1 item in the statearray. It looks like this: const players = (state = [{name:'John',nrGames:0,nrWins:0},{name:...
(2) odpowiedzi
2017-12-14 16:12 Conditionally securing routes (user registration flow) »
I need to implement registration flow using react-router-4. Flow consist of following steps: Create account (email/pass) Confirm email Create profi...
(1) odpowiedzi
2017-12-13 23:12 Use of boilerplate actions and reducers in redux »
I have been following the widely given advice of learning React development by first mastering component props, encapsulating UI state in component le...
(2) odpowiedzi
2017-12-11 12:12 React Redux filtering lags a step »
I have a React Redux connected component which is filtering a list of plots based on selections from a series of dropdowns. It is behaving quite stra...
(1) odpowiedzi
2017-12-08 18:12 Redux-Form v7 Field component typescript errors »
Here's my code where I'm using the Field component: interface EditProfileFormProps extends FormProps { defaults: object; submit: ...
(1) odpowiedzi
2017-12-06 17:12 React + Redux: undefined initial state and reducer not called as expected »
I think this is pretty primitive. I'm having trouble with two things: 1.this.props.appState is undefined in the constructor. This is unexpected becau...
(1) odpowiedzi
2017-12-04 10:12 Dispatching clear state action in redux »
I'm using redux in my react project. My question is how to clear state when some works that use state finished. For example, I have search state in m...
(1) odpowiedzi
2017-12-01 19:12 React 16 : componentDidUpdate Warning: Scheduled a cascading update »
I profiled the performance of my application using react redux by following this article by Ben Schwarz. In the user timing section, i get these war...
(1) odpowiedzi
2017-11-28 22:11 How to make post request using react,redux and axios? »
I am new to React JS and Redux and I must tell you that it has been too overwhelming to get going. I am trying to make a POST request using axios. But...
(3) odpowiedzi
2017-11-27 18:11 Map with bootstrap columns »
I'm using map to iterate throug a list of elements, what I want is to have 4 elements per row. This is my render part of the class: render() { re...
(1) odpowiedzi
2017-11-26 22:11 Why mapStateToProps and mapDispatchToProps are not just one function in Redux? »
Could someone explain to me what are the reasons why Redux has two functions mapStateToProps and mapDispatchToProps that both add props to a container...
(1) odpowiedzi
2017-11-23 10:11 Handle form props of a redux-form stylised with material-ui »
I'm trying to create a login form that makes a API call who returns a token. I'm new with react and redux so to do that I followed this tutorial. Th...
(1) odpowiedzi
2017-11-19 19:11 how generate step by step call generator function in redux-saga? »
function* mySaga() { const score1 = yield* call(asyncTsec, 3); yield put({type:'ADD_ARTIST' , payload:score1 }) const score2 = yield* ...
(1) odpowiedzi
2017-11-19 11:11 React Router causes Redux container components re-render unneccessary »
Here is my major code, App component is connected to Redux's store: class App extends Component { render() { const { requestQuantity } = this...
(0) odpowiedzi
2017-11-17 18:11 Redux/Java: Managing normlized data & multiple model representations per entity »
We are building a new app using React/Redux which is rendered server side. We wish to follow best practice for Redux and normalize our data on the se...
(3) odpowiedzi
2017-11-14 02:11 In React, Is it possible to get access to Redux action creators from inside a utility function? »
I have a form input validation function that just returns an empty errors object or a populated errors object. const validate = function validateSome...
(3) odpowiedzi
2017-11-13 17:11 Bulk updating normalized Redux state »
Let's say I have normalized state like this (using normalizr) entities: { todos: { 'aaa': { id: 'aaa', text: 'Todo A', comple...
(3) odpowiedzi
2017-11-12 21:11 Show initial state in redux? »
I have a simple redux/react app. It works fine except it doesn't show the initial state (the users scores). Grateful for any help! The reducer is be...
(1) odpowiedzi
2017-11-11 19:11 Get data from Redux Store after data has been added »
I am using a boilerplate called trufflebox's react-auth where getWeb is called on loading the page (Link to code) which creates the web3 object (Li...
(2) odpowiedzi
2017-11-07 11:11 Redux state - Add/Edit/Remove object and its properties »
This is the reducer state. I need to add, update, remove the object in cartData. At the first time, cartData is empty. const initialState = { fetc...
(3) odpowiedzi
2017-11-06 23:11 React Redux Axios: POST Request not receiving credentials from redux state »
I have been working on authentication with my project. I have a REST api backend that serves JWT tokens. My front end stack is ReactJS, Redux, Axios a...
(1) odpowiedzi
2017-11-06 18:11 get state from redux react component in jest unit test »
It seems like you can't test state in react components once you make them connected components. Anyone know why? To illustrate the point, I have a tes...
(2) odpowiedzi
2017-11-04 21:11 React Redux: Getting Props And Updating State »
I am trying out React/Redux/JS for the first time. I am a little confused about setting state in component vs letting redux update it. I want to cli...
(5) odpowiedzi
2017-11-02 15:11 use redux in chrome extensions »
I am trying to develop an extension for Google Chrome by using React and Redux. My background.js is the following: import {wrapStore} from 'react...
(1) odpowiedzi
2017-11-02 04:11 React.js - In plain english what is mapDispatchToProps? »
I've been learning React/Redux for a few days. In plain and basic english, what is mapDispatchToProps? I have this function that I don't understand. ...
(5) odpowiedzi
2017-10-30 10:10 Javascript/Lodash/Redux - return object with specific id from an object »
So lets say we have an object: names: { 0: {"id": 30, name: "Adam"}, 1: {"id": 1, name: "Ben"}, 2: {"id": 15, name: "John"}, ...
(3) odpowiedzi
2017-10-28 22:10 Architecture in a react native app using WebSockets »
I have a React Native app I'm going to be building that uses WebSockets. I have a WebSocket library written in JavaScript and I'm simply re-using it f...
(3) odpowiedzi
2017-10-25 22:10 Issues with initialising Redux in React while using mapDispatchToProps »
I'm trying to learn some redux. Component I'm working on is a simble <div> based button that - when clicked - passes value as a parameter to the...
(3) odpowiedzi
2017-10-22 20:10 How can I get value from TextFields and Select by click on button? »
I use react with redux and material ui, and I need get data from TextField for order. I have next code: <Select value={product.color_set[0].title}...
(1) odpowiedzi
2017-10-21 11:10 Redux Framework switch type »
how to use redux framework switch type in wordpress themes? if ( $my_opt_name ) { do something } or if ( $my_opt_name === '1' ) { do something } ...
(1) odpowiedzi