전체 글
-
cookie-option secure: true 옵션 사용시 Safari localhost에서 쿠키 저장이 안되는 문제Nest.js 2024. 5. 23. 16:39
Referencehttps://shanepark.tistory.com/454 Safari 에서만 localhost에 쿠키가 저장 안되는 문제 해결문제 쿠키에 JWT 를 저장하고, 토큰값 기반 로그인을 구현 해 두었다. 그런데 Chrome 이나 Firefox, Opera 등 다른 브라우저에서는 다 문제 없이 작동하는데 유독 사파리에서만 동작이 안된다. Network를shanepark.tistory.com secure:true 옵션은 `Marks the cookie to be used with HTTPS only.` 즉 HTTPS에서만 사용가능한 옵션인데 크롬에서는 localhost에서 잘 동작하지만 safari에서는 동작하지 않는다.제목과 그대로 cookie-option중에서 secure:true는 운영 ..
-
특정한 state 값에 따른 다른 페이지 랜더링을 효율적으로 랜더링 하는 방법에 대해React.js 2024. 5. 19. 19:10
const ScheduleSidebar: FC = ({ isSelecteGroup, isScheduleName, isStartEndPeriod, isPage,}) => { return ( {isPage === 'tourismPage' && ( )} {isPage === 'periodPage' && } ... ... ... {/* 계속 쭉쭉 늘어날거에요! 가독성이 안좋습니다 */} );};export default ScheduleSidebar; isPage 상태값에 따라 `&&` 연산자를 통해서 다른 컴포넌트를 렌더링 하게끔 만들게 되었을때 가독성이 굉장히 안좋아보인다. // 호출 부모 컴포넌트// const ex..
-
react-hook-form Controller를 이용하여 재사용 컴포넌트를 만들때 control props 전달 타입체커 환경 에러React.js/React-hook-form 2024. 5. 11. 20:15
에러 :Type 'Control' is not assignable to type 'Control' 방법1 as unknown as 문법을 이용한 타입 단언https://github.com/react-hook-form/react-hook-form/issues/4965#issuecomment-826862827' is not assignable to type 'Control' · Issue #4965 · react-hook-form/react-hook-form" data-og-description="This seems like a duplicate of #2984. Describe the bug I am experiencing this issue after following the Control example..
-
react-hook-form Controller 사용시 rules validate가 동작하지 않을때React.js/React-hook-form 2024. 5. 11. 19:24
검색 키워드: react-hook-form controller rules not working reference- https://stackoverflow.com/questions/75268266/react-hook-form-rules-validate-not-triggered React Hook Form - Rules.Validate not triggeredI have the following field with a RHF controller and a MUI Textfield: stackoverflow.com ( field.onChange(e.target.value)} > `@${display} `} ..
-
react-hook-form과 다른 라이브러와 함께 사용React.js/React-hook-form 2024. 5. 2. 18:20
react-hook-form을 다른 라이브러리와 함께 사용하고 싶을때가 있다 이를테면 react-date-pick 같은 그럴때 `Controller` 사용 https://react-hook-form.com/docs/usecontroller/controller ControllerPerformant, flexible and extensible forms with easy-to-use validation.react-hook-form.com
-
Node.js pdfNode.js 2024. 4. 28. 08:09
C로 작성된 경량 PDF/XPS/EPUB 뷰어인 MuPDF를 WASM으로 웹에서 사용가능하게 만들어주는 라이브러리지원 기능PDF를 이미지로 렌더링, 파일 내용 검색, 주석 생성 및 편집, PDF 폼 작성, PDF 수정도 가능기본 CJK (Chinese, Japanese, Korean) 폰트 지원AGPL 오픈소스이며, 상용 라이센스는 별도 https://github.com/ArtifexSoftware/mupdf.js GitHub - ArtifexSoftware/mupdf.js: JavaScript bindings for MuPDFJavaScript bindings for MuPDF. Contribute to ArtifexSoftware/mupdf.js development by creating an acc..