plotly / plotly/dash

implement support for React 19

Aperta
#3,231 9 commenti 1 reazione 1 assegnatario Vedi su GitHub

@T4rk1n ci sta già lavorando.

Dal 3/12/2025.

  • #3646 di @T4rk1n — chiusa senza merge
feature P2
Lingua principale
Python
Stelle
24.4k
Fork
2.3k
Merge medio
2g 7h
PR unite (30g)
13

Descrizione

We should start exploring React 19 support. React 19 has many changes which may affect how Dash works.

We know that component libraries will be affected as defaultProps is removed in React 19.

From @T4rk1n :

The defaultProps was mostly handled with the upgrade to react 18 and most components libs now.
propTypes removal doesn't really affect us because we still have the runtime check on our own, we also have our own typescript prop type support altho that might be difficult to update in the future if typescript indeed goes with the go rewrite that been in the news recently.
contextType removal is a new one I didn't see before, might have to update some components for it to work.
string refs removals was also part of the 18 update along with ReactDOM.render -> ReactDOM.createRoot
findDOMNode removal was part of react 18 upgrade.
new one is JSX namespace is changed https://react.dev/blog/2024/04/25/react-19-upgrade-guide#the-jsx-namespace-in-typescript might need some adaptation to the types.
The rest of the changes I don't think would affect us that much, I don't see anything that would prevent us to update. The initial fear with react 19 was with their new compiler but I think that was dropped.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.