GithubHelp home page GithubHelp logo

Comments (4)

jklasd2001 avatar jklasd2001 commented on August 14, 2024

DateRangePicker도 마찬가지네요. startDate, endDate 값이 있는데 데이터 가공할 때 에러가 발생하네요.

스크린샷 2023-02-06 오후 4 36 58

from react-libraries.

jklasd2001 avatar jklasd2001 commented on August 14, 2024

최초 렌더링 시 DateTime

스크린샷 2023-02-06 오후 4 41 04

새로고침 시 DateTime

스크린샷 2023-02-06 오후 4 40 30

from react-libraries.

jklasd2001 avatar jklasd2001 commented on August 14, 2024

useLocationState hook 에서 저장할 때 DateTime안에 있는 모든 데이터를 저장하지 않아서 생기는 문제.
DateTime 안의 year, month, day, toFormat 등의 변수 및 함수가 ProtoType으로 정의되어 있어서 그런 것 같음

해결 방법

  1. DatePicker, DateRangePicker의 value 타입을 ISO or MilliSecond로 변경
  2. DateTime으로 한번 더 감싸서 사용한다.

from react-libraries.

Dave352 avatar Dave352 commented on August 14, 2024

DateTime 객체 안에 변수 및 함수가 초기화되는 것을 막을 수 없어서 타입을 변경하였습니다

defaultValue를 이렇게 설정하면 되겠습니다

date: DateTime.now().toISO()
rangeDate: [DateTime.now().toISO(), DateTime.now().toISO()]

from react-libraries.

Related Issues (20)

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.