for dva, I can only use it at present, but I don"t quite understand many key words, such as the word dispatch. I don"t know where it comes from. I only know that it is a method to print it out with console.log.
for dva, I can only use it at present, but I don"t quite understand many key words, such as the word dispatch. I don"t know where it comes from. I only know that it is a method to print it out with console.log.
see what redux is
Previous: There has been a timeout for Linux to visit the website.
Next: What is the recommended AJAX request encapsulation class library?
how does react ant use custom form validation? 1. Code const Login = ( { loading, dispatch, form: { getFieldDecorator, validateFieldsAndScroll }, } ) => { function handleOk() { validateFieldsAndScroll((error...
simply write a project with ant-design-pro, and write a server.js and npm run build packaged file in the root directory with the built-in mock API,. The dist directory is as follows: server.js: server.js302Cannot read property notifyCount of unde...
if you want to use Tooltip in antd on the same page, you also need to use Tooltip to make a chart. There is a conflict between Tooltip. I want to change the name of one of the Tooltip. Ladies and Gods, what should I do with this ? ...
react + antd-mobile + dva@2 how to solve the problem of page-cutting white screen? occupy the building first and add questions after work ...
for projects done with the ant design pro framework, there is a requirement that when a month is selected, all Sundays of the month are automatically generated and displayed. ...
11: take into account that when browsing a web page, the number of logos may also increase when the page is not refreshed. how do I update my logo count in real time? ...
for example, Zhihu app goes to the question page, clicks on the name of a respondent to enter his personal home page, and then enters the question (or other questions) page in his answer. At this point, there are two instances of the problem page in the...
my directory is as follows: +blocks - $id - models - detail.js - index.js - index.less I see a umi+dva backend, which will automatically generate the following routes, but my directory structure configuration can never be generate...
you can see from the picture that the request header and response header are normal! doesn t see anything wrong, but there is no value in the browser s cookie ! is there something wrong with it? Note: ordinary html+js can be set, but applicatio...
A bunch of errors were reported when the project done with the ant design pro framework was completed and packaged ...
after the project I did with the ant design pro framework was packaged and deployed to the test environment, the page reported an error of 404 and took the interface of mock. mock.webpackrc .roadhogrc.mock.js but still follow the interface of mock ...
yield cyclic call in effects reports an error ...
it goes something like this: is going to use react-saga as the asynchronous solution, but because it is a React-Native project, needs to call some native interfaces in the view layer component after many requests are successful, so the view layer nee...
Log in successfully but will not jump to the main page. If you change it to ant design pro s own service, you can jump back to the main page. you can go to the judgment of login success, but it won t jump. How do you fix this ? ...
in the model file import { articleDetail } from .. .. service api ; export default { namespace: article , state: { detail: null }, reducers: { saveDetail(state, { payload }) { return { ...state, detail:...
umijs generates routes by file, which is really convenient. Now, after logging in, if token fails, how do you monitor the failure of token? the main reason is that you can t find an opportunity to do this. Are there any bosses using umijs ?...
problem description because the development environment is different from the test environment, some configuration parameters are put into a separate file. Each package in the development environment and test environment needs to be modified and submi...
The requirement is to check the login status through code (not http status code, but custom) returned from the backend in request.js . The following two ways have been tried. Although you can jump to the list page after login, the history.listen () ...
use frames umi+dva+antd question after sending a action using server sorting. The order order of the first sort is descend , and then it has been descend no matter how much you click to switch . troubleshooting process looked at the sour...
an item of react, the function of deleting a photo. After clicking to delete a photo, you need to update the component and get the value of the list again. The two function body requests carry different id, and the request is an asynchronous function. I...