TIL

[TIL] 20210926 에러코드, 잘못된 주소 처리

자바칩 프라푸치노 2021. 9. 27. 01:29

 

2021.09.29 - [WEB/REACT] - [REACT] 잘못된 주소 처리 NotFound

2021.09.29 - [에러노트] - [에러노트] TypeError: _redux_configStore__WEBPACK_IMPORTED_MODULE_2__.default.push is not a functiongotoHome

2021.09.29 - [에러노트] - [에러코드] Error: Too many re-renders. React limits the number of renders to prevent an infinite loop.

 

[에러코드] Error: Too many re-renders. React limits the number of renders to prevent an infinite loop.

이 문제는 onClick 함수에서 onClick = {somefunction} 이 함수가 계속 렌더 되는 문제 onClick = {() =>{somefunction()}} 이렇게 해결

sso-feeling.tistory.com

 

[에러노트] TypeError: _redux_configStore__WEBPACK_IMPORTED_MODULE_2__.default.push is not a functiongotoHome

이때 생긴 문제는 바로! history를 import할때 {history}라고 안해서 생긴 에러다. redux > configStore.js import { createStore, applyMiddleware, compose, combineReducers } from "redux"; import { createBr..

sso-feeling.tistory.com

 

[REACT] 잘못된 주소 처리 NotFound

import React, {useCallback, useEffect, Suspense, lazy } from "react"; import { ConnectedRouter } from "connected-react-router"; import { Route, Switch, useLocation } from "react-router-dom"; import..

sso-feeling.tistory.com

 

 

 

 

 

------------------- 참고 ---------------------

 

 

https://data05.tistory.com/101
https://kimtaekju-study.tistory.com/278


728x90