Skip to content

bug : client input text 입력시 communicate 두번 호출  #3

@Jeong-Dagyeong

Description

@Jeong-Dagyeong

app, district, fileupload 파일에 전부 백엔드와 통신하는 코드를 넣고 난 후 모든 통신 Input에서 두번 호출되는 현상 발생

스크린샷 2024-08-22 오후 1 08 35

해결방안

  • Strict Mode 비활성화
  • 비동기 함수 분리 및 상태 관리 개선: district_end의 component 함수에서 비동기 요청을 수행할 때, 이를 별도의 함수로 분리하거나, 비동기 작업이 완료된 후 상태를 한 번만 업데이트하도록 변경
  • 조건부 렌더링: 상태가 변경되었을 때만 component 함수가 호출되도록 조건부 렌더링을 추가

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions