react-redux 6.0.0
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, react, redux
- Ambito
- frontend
Direzione di ricerca
Inizia con la funzione onLoad e il comportamento di mapStateToProps descritti nella issue, quindi leggi la issue collegata di react-redux e le note di rilascio relative alla modifica di Context.Provider. Il lavoro è completato quando si determina come dovrebbero comportarsi il quarto parametro di contesto e lo stato del reducer iniettato, documentando o validando gli aggiornamenti dei componenti risultanti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Just ran into an issue with the new way react-redux behaves.
You can see more details about it in this thread: https://github.com/reduxjs/react-redux/issues/935#issuecomment-446515270
As we can see from the last release of react-redux 6.0.0: https://github.com/reduxjs/react-redux/releases
Behavior Changes
Any library that attempts to access the store instance out of legacy context will break, because we now put the store state into a <Context.Provider> instead. Examples of this include connected-react-router and react-redux-subspace. (The current implementation does also put the store itself into that same context. While accessing the store in context is not part of our public API, we will still try to make it possible for other libraries to access it, with the understanding that this could break at any time.)
This makes the onLoad function not working properly. The fourth parameter context is no more populated with the store.
Although it is not a real issue for me, as I use redux-reducers-injector (I'm the maintainer), I have a reference of the store that I can use, and can use replaceReducer.
The real issue is that even with injecting my reducer correctly, the mapStateToProps will not reflect this change in its first parameter state and I won't be able to display my component correctly.
You can read more about this issue in the link I post above on the react-redux project: https://github.com/reduxjs/react-redux/issues/935#issuecomment-446515270
Feel free to ask me more information about this.
- Lingua principale
- JavaScript
- Stelle
- 1.7k
- Fork
- 80
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di faceyspacey/react-universal-component
-
Cannot access preloadWeakAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
-
will it work with webpack 5?Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
faceyspacey/react-universal-component#222 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
faceyspacey/react-universal-component#219 · 6 commenti ·
-
Circular dependency warningsAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
faceyspacey/react-universal-component#218 · 7 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
faceyspacey/react-universal-component#217 · 3 reazioni ·
Tutte le issue di faceyspacey/react-universal-component
Issue simili
-
bug confirmed js v6
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
BUG
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
linuxmint/cinnamon-spices-applets#9223 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
fastify/fastify-swagger-ui#299 ·