728x90
๋ฐ˜์‘ํ˜•
 ํฌ์ŠคํŒ… ์ธ๋„ค์ผ ์ด๋ฏธ์ง€

๊ฐœ๋ฐœ/React

React-helmet Maximum call stack size exceeded ๋ฒ„๊ทธ ์ˆ˜์ •

๊ฐœ์ธ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋Š” ๋„์ค‘์— maximum-call-stack-size-exceeded ์—๋Ÿฌ๋ฅผ ๋งˆ์ฃผํ•˜๊ฒŒ ๋˜์—ˆ๋Š”๋ฐ, ์ฝ”๋“œ๋ฅผ ์•„๋ฌด๋ฆฌ ๋ถ„์„ํ•ด๋ด๋„ ๋””๋ฒ„๊น…์„ ํ•  ์ˆ˜ ์—†์—ˆ๋‹ค. ๊ทธ๋Ÿฌ๋˜ ์™€์ค‘์— deep-equal์ด๋ผ๋Š” ๋ถ€๋ถ„์—์„œ ์—๋Ÿฌ๊ฐ€ ๋‚จ์„ ๋’ค๋Šฆ๊ฒŒ ํ™•์ธํ•˜๊ณ  ๋””๋ฒ„๊น…์„ ์‹œ์ž‘ํ–ˆ๋Š”๋ฐ ์•„๋ฟ”์‚ฌ component -> actionCreator -> reducer -> component ์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ์ƒˆ๋กœ ๋ฐ”์ธ๋”ฉํ•˜๋Š” ๋„์ค‘์— ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ณณ์ด hoc๋กœ ๊ตฌํ˜„ํ•ด๋†“์€ react-helmet ๋ถ€๋ถ„์ด์—ˆ๋‹ค.. ์ •๋ง ์–ด์ด๊ฐ€ ์—†๋‹ค. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ ๊ต‰์žฅํžˆ ์‹ฌํ”Œํ•˜๋‹ค. Before: test After: children ๊ตฌ๋ฌธ์œผ๋กœ jsx ํŒŒ์‹ฑ์„ ํ•˜์ง€ ๋ง๋ž€๋‹ค. ์•„๋ž˜๋Š” ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ตฌ๋ฌธ ์†Œ๋ฆ„๋‹๋Š”๊ฑด development ๋ชจ๋“œ์—์„œ๋Š” ์žฌํ˜„์ด ์•ˆ๋˜๊ณ  produc..

2019.07.31 ๊ฒŒ์‹œ๋จ

728x90
๋ฐ˜์‘ํ˜•