Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[공지사항] 코인 공지사항 구현 #56

Merged
merged 28 commits into from
Oct 7, 2024
Merged

Conversation

junghaesung79
Copy link
Contributor

@junghaesung79 junghaesung79 commented Oct 7, 2024

코인 자체 공지사항 기능 구현했습니다.

  • 리스트 조회, 단건 조회, 수정, 삭제, 생성 기능이 있습니다.
  • 현재 공지사항 수정 후 그 본문이 즉시 반영되지 않는 문제가 있습니다.
  • 해결 시도해보고 마땅한 방법을 못 찾을 경우 제출 후 새로고침 하는 방법을 사용할 생각입니다.
    • 현재 공지사항 수정 후 제출 시 리스트로 이동하도록 하였습니다.
image image image image image

.yarnrc.yml Show resolved Hide resolved
package.json Show resolved Hide resolved
src/App.tsx Show resolved Hide resolved
src/utils/hooks/debouce.ts Outdated Show resolved Hide resolved
Comment on lines 46 to 48
const debouncedSetFieldsValue = useDebounce(useCallback((value: string) => {
form.setFieldsValue({ content: value });
}, [form]), 300);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

디바운스 기능을 넣은 이유가 궁금합니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

handleFinish 함수를 완성하지 전에 생각하기로 form이 바뀌는 것을 핸들링 해야 한다고 생각했었습니다. 지금 확인해보니 onChange 이벤트를 주지 않고 debounce 관련 코드를 전부 걷어내도 정상적으로 기능하네요. 이 부분 수정하겠습니다.

@junghaesung79 junghaesung79 merged commit a210909 into develop Oct 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants