Giter VIP home page Giter VIP logo

Comments (21)

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024 1

@ctuanle ừ hàm fetch bth của react đó, hấn kiểu ban đầu xài thì đc đc sau đôi khi nó cứ kiểu thiếu thiếu ý, m thử xài axios đi, hấn kiểu tự động convert data đc với có xử lý lỗi nữa

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024 1

@ctuanle t nghĩ là chỉ lưu mấy cái kiểu setting cơ bản của ng dùng với của app thui (dark/light mode, theme app, user info, mấy hàm để dịch nếu thêm đa ngôn ngữ, ...)
chắc sau khi #7, #5 xong thì mình xài context trc rồi sau này setup lại redux sau

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024 1

@ctuanle t mới tạo 1 branch beta, m code đc từng mô cứ merge vô cái branch ni rồi test nha
https://react-movie-git-beta-khanhtran47.vercel.app/

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024 1

@ctuanle issue ni là tạo cái ảnh bìa rồi thêm cái swiper cho nó tự chuyển rứa, hồi t xài cái swiperjs để cho có cái hiệu ứng vuốt vuốt rứa, cái ảnh ni cho dễ hình dung 😅

170836209-cd26bd25-aafa-4db0-918e-d1c7f5c83dfa

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024 1

@ctuanle issue ni t lm tiếp nha

from sora.

ctuanle avatar ctuanle commented on May 28, 2024 1

@Khanhtran47 ok

ủa mà sao m lại hiện cái scroll nơi left drawer rứa :v

à do t co ngắn cái cửa sổ lại thôi

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024

@ctuanle call api chắc xài axios hậy, hay react query

from sora.

ctuanle avatar ctuanle commented on May 28, 2024

@Khanhtran47 fetch cho khỏe :v, đỡ phải cài thêm dependency

mà m định làm phần này à, để t khỏi làm

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024

@ctuanle fetch ajax á, cái nớ call ngu lắm, nó quản lý response cứ đụt đụt kiểu gì ấy :v
k kiểu để thống nhất xài chi trc để t tạo file call bên api

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024

@ctuanle t nghĩ là tạo 1 issue config cái api trc rồi lại lm mấy issue ni

from sora.

ctuanle avatar ctuanle commented on May 28, 2024

@Khanhtran47

fetch ajax á,

k phải ajax, hàm fetch built-in

t nghĩ là tạo 1 issue config cái api trc rồi lại lm mấy issue ni

m xem cái commit 9e7a318 ni thử có ok không ?

from sora.

ctuanle avatar ctuanle commented on May 28, 2024

@Khanhtran47 thấy mình chỉ dùng để get từng request riêng lẻ thì thấy k khác nhau mấy, convert thì res.json() là ra, xử lí lỗi thì t nghĩ giống nhau cả thôi, catch lỗi r xử lí. Mà muốn dùng axios thì cũng đc, thấy cx k khác nhau lắm

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024

@ctuanle k m cứ xài fetch trước đi, khi mô merge vô rồi t lm tiếp t đổi sang axios sau

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024

@ctuanle m muốn xài redux luôn k, hay context api đc rồi :v

from sora.

ctuanle avatar ctuanle commented on May 28, 2024

@Khanhtran47 t nghĩ dùng gì cũng đc :v

Mà cx tùy xem muốn dùng để lưu chi nữa, nếu đơn giản ít update thì dùng context đỡ phải cài thêm đồ, nếu không thì dùng redux cho tiện

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024

@ctuanle hay xài của vercel để fetch luôn https://swr.vercel.app/

from sora.

ctuanle avatar ctuanle commented on May 28, 2024

@Khanhtran47 ok

ps: t mới tạo xong cái home page sơ sơ với cái trending, nhìn hơi tởm đều demo vậy

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024

@ctuanle m tạo PR đi rồi t xem

from sora.

ctuanle avatar ctuanle commented on May 28, 2024

@Khanhtran47 oke

from sora.

ctuanle avatar ctuanle commented on May 28, 2024

@Khanhtran47
image

chỗ trang trending hình như bị lệch sang bên trái ý

from sora.

Khanhtran47 avatar Khanhtran47 commented on May 28, 2024

@Khanhtran47 image

chỗ trang trending hình như bị lệch sang bên trái ý

@ctuanle do trang chủ t để k có padding để cái ảnh nền full width với height, còn những trang khác thì t để thêm padding
ủa mà sao m lại hiện cái scroll nơi left drawer rứa :v

image

from sora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.