auto: /\.module\.\w+$/i,
.{
loader: 'css-loader',
options: {
modules: {
exportGlobals: true,
localIdentName: '[local]--[hash:base64:5]',
auto: /\.module\.\w+$/i,
},
},
},
const cancelToken = axios.CancelToken;
const usePost = () => {
const source = useRef(null);
return () => {
if (source.current) {
source.current.cancel();
}
source.current = cancelToken.source();
const result = http.post(`${API_URL}.${METHODS.CALL_ENROLLMENT}`, { cancelToken, userId, filter });
// ........
result.finally(() => {
// Обнуляем токен при завершении запроса
source.current = null;
});
return result;
}
}
идентичны
l
и 1
совсем не одно и то же.