guesung / client-ver2.0 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from holllang/client-ver2.0
인공지능을 활용한 성격 유형별 취미 추천 메타콘텐츠
Home Page: https://hollang.swygbro.com/
This project forked from holllang/client-ver2.0
인공지능을 활용한 성격 유형별 취미 추천 메타콘텐츠
Home Page: https://hollang.swygbro.com/
질문 페이지 -> 서버로부터 결과를 받고 결과 페이지로 넘어가는 과정에서 로딩이 길다. 3D파일의 용량이 크기 때문이다. 그래서 이 과정에서의 loading처리를 해주어야 한다. isLoading
을 질문 페이지와 결과 페이지에서 각각 useState로 상태관리를 하니 중간에 loading화면이 끊기는 현상이 있었다. 그래서 useRecoil을 이용하여 loading상태를 관리하고자 한다.
// src/pages/question.tsx
export default function question({ data }: { data: QuestionDataType[] }) {
...
const nickname = localStorage.getItem('nickname') || '';
...
}
컴포넌트 안에서 localStorage를 사용했는데 not defined가 발생한다.
기존 getStaticProps를 사용하지 않을 때는 발생하지 않던 오류이다. 즉슨, 서버 측에서 페이지를 미리 생성해서 보내주는데, 서버 측에는 localStorage가 존재하지 않아서 뜨는 오류이다.
Originally posted by @guesung in holllang#3 (comment)
<ResultLoading />
이 보이도록 구현<Loading />
이 보이도록 구현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.