We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
react-select 라이브러리 자체적으로 SSR 대응에 문제가 있었다. 검색해본 결과 id를 직접 부여해서 해결해야한다는 해결책들을 찾을 수 있었다. (SSR과 클라이언트 측 하이드레이션 -> id 동기화 유지를 위한 고유 id를 부여)
export default DropdownField 이 코드에 대해서 '{ name: string; control: Control; instanceId: string | null; render: ({ field: { onChange, value, ref } }: { field: ControllerRenderProps<any, string>; fieldState: ControllerFieldState; formState: UseFormStateReturn<...>; }) => Element; }' 형식은 'IntrinsicAttributes & { render: ({ field, fieldState, formState, }: { field: ControllerRenderProps<any, string>; fieldState: ControllerFieldState; formState: UseFormStateReturn<...>; }) => ReactElement<...>; } & UseControllerProps<...>' 형식에 할당할 수 없습니다.
란 오류가 계속 발생해서 control의 타입을 바꾸는 등의 시도를 해보았는데 해결하지 못했습니담... 일단 useID로 성공했지만 이 방법으로도 해결이 가능한지는 잘 모르겠네요 🤔
해결에 참고해본 링크
The text was updated successfully, but these errors were encountered:
spolice0324
No branches or pull requests
Description
react-select 라이브러리 자체적으로 SSR 대응에 문제가 있었다.
검색해본 결과 id를 직접 부여해서 해결해야한다는 해결책들을 찾을 수 있었다.
(SSR과 클라이언트 측 하이드레이션 -> id 동기화 유지를 위한 고유 id를 부여)
저 같은 경우는 React 18에서 제공해주는 UseId를 통해 받아온 값을 instanceId로 부여해주었더니 해결할 수 있었습니다.
Caution notice
란 오류가 계속 발생해서 control의 타입을 바꾸는 등의 시도를 해보았는데 해결하지 못했습니담... 일단 useID로 성공했지만 이 방법으로도 해결이 가능한지는 잘 모르겠네요 🤔
해결에 참고해본 링크
The text was updated successfully, but these errors were encountered: