Skip to content
Source
Sign inSign up
TanStack/react-charts

fix: React 18 support for tooltip modal #336

OpenGwendolenLynch(GitHub profile, opens in a new tab)wants to merge 1 commit intobeta fromrefs/pull/336/headopened

This might not be the best way to go, but it WFM, @tannerlinsley :smiley_cat:

I'm not a React person, but as I best understand what is going on, React 18 changed the render API. That new API is picky over portal element destruction and related setState() calls, c.f. added/moved useRef()s.

Additionally, the location move of Object.assign() is to handle the element being added in the project implementation.

Relevant to #256 #301 #316

Happy to make additional changes, or if you have better ideas please feel free to poach whatever is useful for a better PR.

    1. Hi, @tannerlinsley any update on this? Being stuck on beta 38 because of this. Thanks

    2. @tannerlinsley Any updates on this?

    3. Hey @tannerlinsley, I know you're pretty busy with other projects but this is a pretty important issue to handle since many of us have already switched to React 18, could you please take a look and potentially merge this? Thank you!

Sign in to join this conversation.