Reflex

it/programming

Link 컴포넌트 오류 / Pynecone.io to Reflex.dev migration debugging

reflex init 을 통해 자동으로 코드를 마이그레이션하고 바로 실행하니 오류를 만난다. ValueError: Link without a child will not display 링크에 하위객체가 없는 오류를 추가했나보다. 레퍼런스를 체크해보니 이런 코드가 추가된걸 볼 수 있었다. if href and not len(children): raise ValueError("Link without a child will not display") 어쩔 수 없이 빈 div 를 추가해줬다. reflex.link( reflex.Box(), # 요걸 추가했다. href=replace_dynamic_route_args( route=PortfolioDetailPage.route, portfolio_id=portfolio..

it/programming

Pydantic json dumps / Pynecone.io to Reflex.dev migration debugging

Pynecone 으로 실시간 렌더링을 할때에 만났던 오류 중 date 필드를 json 으로 dumping 하지 못해 발생하던 TypeError: 'datetime.date' object is not iterable 를 해결하기 위해서 원래는 # class SomeModel(reflex.Model, table=True): class Config: json_dumps = partial(json.dumps, default=str) 이런식으로 config 에 직접 넣어줬었는데 reflex 로 들어오면서 pydantic 버전을 올렸고, 특정 버전부터 json dumps 가 wrapping 되었다. monkey patching 해서 쓰던 hsol.info 프로젝트에 좋은 신호이다. pydantic.Base 의 js..

it/programming

Reflex.dev / Pynecone 이름이 바뀌었다?, 마이그레이션

2023년 6월에 Reflex라는 이름으로 프로젝트 명이 변경되었다. https://reflex.dev/blog/2023-06-28-rebrand-to-reflex https://reflex.dev/blog/2023-06-28-rebrand-to-reflex reflex.dev This name aligns with our goal of creating a web framework easy and intuitive, while remaining flexible and powerful to support any app. We will continue to grow Reflex as an open source project to include all the features of web development...

반응형
훈솔
'Reflex' 태그의 글 목록