menu

Recent questions tagged redux

2 votes
1 answer
Is it normal to use data from different redusers in one component? I have one page, for example, I need to load a list of students from one redirector, and a list of faculties from another. Isn't that legal? Isn't there any contradicti ...
by danyvasnafig
asked Sep 24, 2021
1 vote
1 answer
How do I redraw App.js? I use react-redux in my project. There is some string variable stored in the stor, I change it from the internal pages of the site. The problem is that in App.js I can't ...
by zlodiak
asked Sep 22, 2021
1 vote
1 answer
React/Redux How to properly sort an array of data by sending time? I have an array of users, each user has an array of messages with the date each message was sent. The task is to sort the user list component by sending time, so that u ...
by David-Bon
asked Sep 22, 2021
1 vote
1 answer
Why doesn't reducer see the array change? Good evening, question about react and react-redux. I have a store with comments and I want to add another comment to it. It is added, but the component displaying the c ...
by Andreeyyy
asked Sep 20, 2021
3 votes
1 answer
How to organize the structure of queries in Next.js? Hello, everyone! I'm writing a small cafe aggregator. In the process of transferring the project from React.js to Next.js I read all the documentation several times, b ...
by Fdrsmrdv
asked Sep 19, 2021
1 vote
1 answer
What does node.js refer to when showing a server startup error? I can not find on the Internet what is the error with the experimental import function. 100% error text will not be enough, so I expect questions what else to show from ...
by Ababinili
asked Sep 19, 2021
1 vote
1 answer
How do I get the correct data from the Redux store? Hi all, I'm new to radish and tapscript. I'm currently learning both, putting them into practice right away. I have a simple React application and have a data file. Init ...
1 vote
2 answers
How do I bring up the state in the parent component? I have a presentation component that is nested within the parent component. Within the presentation component, a local state is used. This is the wrong approach so I wou ...
by zlodiak
asked Sep 18, 2021
1 vote
2 answers
How does redux handle actions? Let's say there are 10 redirectors. One of them reacts to action.type ADD_ITEM So when you call this action (ADD_ITEM), the redactor goes through all the redactors and ...
by eugenedrvnk
asked Apr 3, 2021
1 vote
1 answer
image
How do I launch into the property of the state? I wrote a form that sends its content to the global state. The reduser looks like this: const messagesReducer = function messagesReducer(state = { messages: }, actio ...
by zlodiak
asked Apr 2, 2021
1 vote
1 answer
Why does it cause an error when writing to the state? action export const fetchQuote = url => { return dispatch => { fetch(url) .then(res => res.json()) .then(res => dispatch({ t ...
by depstor
asked Apr 1, 2021
1 vote
1 answer
image
How do I filter an array by name in react redux? I get the data from the random users API. I get the data from the random users API. reducerimport { FETCH_USERS, SEARCH_VALUE, } from "../actions/actionTypes";export fu ...
by light-time
asked Mar 29, 2021
2 votes
2 answers
Ivan The state crashes when switching between tabs, and I can't add componentDidMount to it because it interferes with shouldComponentUpdate. I put the value from redix into ...
by BenderIsGreat34
asked Mar 29, 2021
1 vote
1 answer
How do I type a function? There is a problem with typescript and function dispatch, I don't know what type to apply. Here is the code of the action where the error occurs: import { Dispatch } fro ...
by stepan132
asked Mar 26, 2021
1 vote
2 answers
What's the best way to make asynchronous queries in a React container component so that updated props come into the presentation component? Good evening, I was faced with this problem. I need to display a list of projects that I keep in the MongoAtlas cluster. I use axios to make a request to the server, lo ...
by Zhanna_K
asked Mar 25, 2021
2 votes
2 answers
How to build communication between redusers, and is it worth it? Good night. There is a state slice (one redirector), which stores a list of entities from API, isLoading flag and at the same time search data: filter and results. I wou ...
by Heian
asked Mar 25, 2021
1 vote
1 answer
What is the correct way to class the active button in ReactRedux? There is a smart component and a dumb one. In the dumb one, the buttons are rendered: spoiler The silly component itself looks like this: import React from 'react';impo ...
by uroot
asked Mar 23, 2021
1 vote
2 answers
What is middleware for? Why can't I query the component and put the data into the state? ...
by justedoit
asked Mar 23, 2021