hediar / koriniproject Goto Github PK
View Code? Open in Web Editor NEWCRUD + chatGPT API를 이용한 변수명/함수명 작명 기능을 이용한 개발자 커뮤니티
Home Page: https://korini-project.vercel.app
CRUD + chatGPT API를 이용한 변수명/함수명 작명 기능을 이용한 개발자 커뮤니티
Home Page: https://korini-project.vercel.app
발표 피드백
코드 피드백
헤더에 버튼 생성하기
데이터별 무한 스크롤 구현하기
게시판1에서 쓴 댓글은 게시판1에서만 보이게
로그인을 하고 url을 이동하거나 새로고침되면 로그인 세션이 유지되지 않고 로그인이 풀리는 이슈가 있습니다!
같이 작업하면서 Auth.tsx 컴포넌트에 있던 내용을 SignIn, SignUp 컴포넌트로 분리해서 작업해서 Auth.tsx 컴포넌트가 불필요해진 것 같아용
나중에 코드 정리할 때 까먹을까봐 이슈에 남겨둡니당
console.log 경고메시지
Warning: Each child in a list should have a unique "key" prop.
Check the render method of `Mainposts`. See https://reactjs.org/link/warning-keys for more information.
at Mainposts (http://localhost:3000/static/js/bundle.js:1583:81)
at div
at Main
at RenderedRoute (http://localhost:3000/static/js/bundle.js:61447:5)
at Routes (http://localhost:3000/static/js/bundle.js:62079:5)
at Router (http://localhost:3000/static/js/bundle.js:62017:15)
at BrowserRouter (http://localhost:3000/static/js/bundle.js:60120:5)
at Router (http://localhost:3000/static/js/bundle.js:4172:61)
at QueryClientProvider (http://localhost:3000/static/js/bundle.js:79015:3)
at App (http://localhost:3000/static/js/bundle.js:44:76)
at Provider (http://localhost:3000/static/js/bundle.js:57559:3)
import { Outlet, Navigate } from 'react-router-dom';
import { useAppSelector } from '../hooks';
import { RootState } from '../redux/config/configStore';
const PrivateRoute = () => {
const { user } = useAppSelector((state: RootState) => state.user);
return user ? <Outlet /> : <Navigate to="/" />
};
export default PrivateRoute;
private route
관련 이슈/write
나 /mypage
를 입력하여 접근하려고 하면, main('/')으로 튕겨져 나오는 현상
localstorage
에 auth-token값을 getItem해서 auth-token값의 유무로 판단하려고 하였으나, supabase의 경우 auth-token의 key값이 주기적으로 바뀌기 때문에, 이 바뀌는 토큰값을 어떻게 가져와야할지 해결 방안을 찾지 못해서 최종적으로는 이 문제를 해결하지 못함로그인 모달에서 -> 회원가입 버튼 클릭 후 회원가입 모달창 닫고 다시 로그인 버튼 누르면,
로그인 모달이 보이는게 아니고 회원가입 모달이 렌더링됩니다!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.