Had a problem in chapter 3.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, react, redux
- Área
- frontend
Línea de trabajo
Comienza con postsSlice.js alrededor de la línea 88 y reproduce el flujo del capítulo 3 que carga las publicaciones y crea una nueva publicación. Compara el comportamiento de concatenar loadedPosts con reemplazar state.posts; se considera terminado cuando la lista se renderiza una vez, las interacciones con emojis funcionan y las nuevas publicaciones aparecen en el orden previsto.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Dave,
Love your stuff! You are the best. Thank you all all you're doing to help us new and inspiring developers.
In chapter three (I believe) I ran into a problem where the code added the 100 posts twice...creating a 200 post rendering and some weird behaviors for clicking on the emojis. When I added a new post it would place the new post right after the first post...not before.
I don't know the reason for this entirely...since I'm still new to the react and redux world but I hung with it for a while and eventually, in the postsSlice.js file (somewhere around line 88), I changed the code from:
'state.posts = state.posts.concat(loadedPosts);'
to
'state.posts = loadedPosts;'
With this change the rendering of all the posts twice stopped. With this change I also noticed that when I created a new post it was placed on the top. So I'm wondering if maybe between when you released the video tutorials and now (a couple of years later) maybe react, reduce, thunk or axios or something else has updated that created this twice rendering and making a 200 entry list of posts problem.
I wanted you to know what I encountered and how it was maybe fixed(???? time will tell as I do more work).
Wishing you all the best.
my email is jdavidmcgee@mac.com if you want to share any further insights...I am a new developer in training and your stuff is really really good!
All the best,
David
- Lenguaje dominante
- JavaScript
- Estrellas
- 789
- Forks
- 699
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de gitdagray/react_redux_toolkit
-
Running useEffect in react 18: Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
gitdagray/react_redux_toolkit#11 · 2 comentarios ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 45/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
gitdagray/react_redux_toolkit#7 · 5 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
gitdagray/react_redux_toolkit#3 · 1 comentario ·
Todos los issues de gitdagray/react_redux_toolkit
Issues similares
-
bug confirmed issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
open-webui/open-webui#30750 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Mend: dependency security vulnerability untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100