일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- CSS
- react
- codingtest
- React 공식문서
- React API 참고서
- getUTCDate
- Babel
- background setttimeout
- React 고급 안내서
- background: url
- context
- React 18
- react-helmet
- background setInterval
- 고급안내서
- React 18 Nextjs
- RTK Query
- React 고급안내서
- notFound()
- Next13
- next13 head
- Nextjs
- React18
- Render Props
- hook
- Nextjs React 18
- Programmers
- Javascript
- react hook
- background tab
Archives
- Today
- Total
akjfal
11/11 본문
회사 코드 refactoring에 집중
배열 속 객체의 데이터 하나를 변경해야 하는 문제 발생
-> 해결
const Plus=(i)=>{
const amount = tempOptionList[i].amount+1;
const tempOption = {id: tempOptionList[i].id, option: tempOptionList[i].option, price: tempOptionList[i].price, stock: tempOptionList[i].stock, amount};
tempOptionList[i] = tempOption;
restList = tempOptionList.concat(restList);
dispatch(calOptionAmount(restList));
}
새로운 객체를 생성 후 기존 배열에 넣어주는 방식 채택
카카오 로그인과 서버간의 충돌 발생
https://brunch.co.kr/@adrenalinee31/1
javascript ajax 크로스도메인 요청-CORS
web application development | Overview 웹 개발시 자바스크립트로 외부 서버의 경로로 ajax요청을 날리면 에러가 나면서 요청이 실패한다. 웹 브라우저의 콘솔 창에 아래와 같은 메시지를 보게 된다. 크롬 No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ‘[요청한 도메인]' is
brunch.co.kr
다음 문제같은데 일단 서버단에서 확인후 알려주기로함
kakao sdk가 너무 구식이라 header에 선언 후 받아오는 것을 window전역변수를 통해 해결
Comments