Giter Site home page Giter Site logo

guesung / client-ver2.0 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from holllang/client-ver2.0

0.0 0.0 0.0 782.77 MB

인공지능을 활용한 성격 유형별 취미 추천 메타콘텐츠

Home Page: https://hollang.swygbro.com/

JavaScript 4.68% TypeScript 92.68% CSS 2.64%

client-ver2.0's Issues

로딩 상태 전역 관리

🤷 이슈 내용

질문 페이지 -> 서버로부터 결과를 받고 결과 페이지로 넘어가는 과정에서 로딩이 길다. 3D파일의 용량이 크기 때문이다. 그래서 이 과정에서의 loading처리를 해주어야 한다. isLoading을 질문 페이지와 결과 페이지에서 각각 useState로 상태관리를 하니 중간에 loading화면이 끊기는 현상이 있었다. 그래서 useRecoil을 이용하여 loading상태를 관리하고자 한다.

localStorage is not defined

// src/pages/question.tsx
export default function question({ data }: { data: QuestionDataType[] }) {
 ...
  const nickname = localStorage.getItem('nickname') || '';
 ...
}

컴포넌트 안에서 localStorage를 사용했는데 not defined가 발생한다.

스크린샷 2023-06-16 오후 9 39 24

기존 getStaticProps를 사용하지 않을 때는 발생하지 않던 오류이다. 즉슨, 서버 측에서 페이지를 미리 생성해서 보내주는데, 서버 측에는 localStorage가 존재하지 않아서 뜨는 오류이다.

Originally posted by @guesung in holllang#3 (comment)

반응형 개선

기존 화면

Jun-17-2023 14-55-53

반응형형이 조금 있긴 있으나 아직 많이 부족하다.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.