Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://edu.duthanhduoc.com/learn/ReactJs-Super?lessonId=119 #89

Open
utterances-bot opened this issue Jan 16, 2025 · 2 comments
Open

Comments

@utterances-bot
Copy link

Khu vực học tập | Được Edu

Được chỉ cung cấp các khóa học lập trình online chất lượng, nói không với khóa lởm!

https://edu.duthanhduoc.com/learn/ReactJs-Super?lessonId=119

Copy link

xem tới phần đồng bộ thì em cảm thấy khá khó hiểu,ở bài trước mình dùng createAsyncThunk thì mình cần đồng bộ với slice,còn lần này mình có tạo gì đâu mà đồng bộ ạ.Mà dù ko tạo tag để đồng bộ thì addPost nó vẫn hoạt động bình thường mà a.

@duthanhduoc
Copy link
Contributor

xem tới phần đồng bộ thì em cảm thấy khá khó hiểu,ở bài trước mình dùng createAsyncThunk thì mình cần đồng bộ với slice,còn lần này mình có tạo gì đâu mà đồng bộ ạ.Mà dù ko tạo tag để đồng bộ thì addPost nó vẫn hoạt động bình thường mà a.

Đúng là nó vẫn hoạt động bình thường nhưng dữ liệu nó bị sai đó em. Khi em thêm 1 post nhưng danh sách state posts của em vẫn không thay đổi nghĩa là tiềm ẩn bug rồi. Ví dụ em render 1 list, em thêm 1 item mà em không cập nhật cái list này thì em sẽ không thấy item đó xuất hiện

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants