Questions tagged as 'redux'

2
answers

Using Object.assign for a multi-level javascript object

Well I am doing a React-Readux application, and I have the following Array of objects that my store has: const authors = [ { id: 'cory-house', firstName: 'Cory', lastName: 'House', address: { city: 'Caracas' } },...
asked by 02.08.2017 / 01:16
0
answers

Problem with redux-saga and firebase when executing a actions

I'm trying to activate an action in the execution of a saga, the problem is that the Action is never activated, this is the code: import firebase from 'react-native-firebase'; function authorize(query) { console.log(query.size); if(query....
asked by 02.07.2018 / 08:22
3
answers

Redux: When to spend props and when to take props from the state?

As you will know in redux we have access to the global state in any component with connect . But my question is: What is the best practice to pass props (or up to depth level) to nested components and when to take properties directl...
asked by 30.12.2016 / 11:52
1
answer

immutableJs Update object key with second order of Map

Good afternoon, I'm in a project where I have to use Redux for the status of my application in Meteor , but when handling a reduced type object I had to use > ImmutableJs where when using the .set property to change the value of a key of...
asked by 04.01.2017 / 17:12
0
answers

Action in Redux to pass a URL with the Weather

I have a function in the actions of Redux which obtains a json with the data of an API of the Climate, my problem is how I can connect my component correctly with Redux and in what way I can pass the parameters of the ciudad and the...
asked by 03.05.2018 / 19:54
1
answer

Render a component when the store changes in React

I am using Redux with React to implement a platform that processes sales invoices. The parent component imports several components in turn, one of them is the component with customer information, "SalesInfo" as indicated below: render() { cons...
asked by 23.02.2018 / 16:59
0
answers

React + Redux + REST [closed]

I present my doubt: I have to do a REST API for external clients. I need to have 3 different applications, 1 for internal use, 1 for external use and the API, which will be connected (apart from external clients) to the other 2 application...
asked by 26.09.2017 / 09:39
0
answers

Containers in StackNavigator

A few weeks ago I come with the following question: When creating a Container (using the connect in a component of view to which you want to put a logic using redux) for example a HeaderContainer that has a button that calls a dispatch to do...
asked by 26.09.2017 / 17:43
1
answer

Problem with observables in angular2

Hello, how could I do the following, I have a ListComponent component that serves as a template. At the end I have ListComponent1 and ListComponent2, which is passed by input different options (type of menu if it is menuPrincipal, authentication...
asked by 13.04.2017 / 23:08
1
answer

state.post is undefined in Blog with React + Redux

I have a problem rendering the list of all the post with React, I want to render a function with a mapping of posts but it tells me that the one that is undefined, that is due. I used mapStateToProps to call the array todos...
asked by 25.06.2018 / 01:03