Had a problem in chapter 3.
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 28/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript, react, redux
- 領域
- frontend
調査の方向性
postsSlice.js の 88 行目付近から始め、投稿を読み込み、新しい投稿を作成する第 3 章のフローを再現してください。loadedPosts を連結する場合と state.posts を置き換える場合の挙動を比較してください。リストが 1 回だけレンダリングされ、絵文字の操作が機能し、新しい投稿が意図した順序で表示されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- JavaScript
- スター
- 789
- フォーク
- 699
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
gitdagray/react_redux_toolkit のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
gitdagray/react_redux_toolkit#11 · コメント 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
gitdagray/react_redux_toolkit#7 · コメント 5 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
gitdagray/react_redux_toolkit#3 · コメント 1 件 ·
gitdagray/react_redux_toolkit の issue をすべて見る
似ている issue
-
bug confirmed issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
open-webui/open-webui#30750 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100