Comments (21)
@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.
@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.
@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.
@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 😅
from sora.
@ctuanle issue ni t lm tiếp nha
from sora.
@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.
@ctuanle call api chắc xài axios hậy, hay react query
from sora.
@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.
@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.
@ctuanle t nghĩ là tạo 1 issue config cái api trc rồi lại lm mấy issue ni
from sora.
fetch ajax á,
k phải ajax, hàm fetch built-in cơ
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.
@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.
@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.
@ctuanle m muốn xài redux luôn k, hay context api đc rồi :v
from sora.
@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.
@ctuanle hay xài của vercel để fetch luôn https://swr.vercel.app/
from sora.
@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.
@ctuanle m tạo PR đi rồi t xem
from sora.
@Khanhtran47 oke
from sora.
chỗ trang trending hình như bị lệch sang bên trái ý
from sora.
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
from sora.
Related Issues (20)
- user
- Loklok API URL HOT 1
- Please help me create a user account HOT 6
- Email verification
- Account and Player Settings HOT 1
- anime OP/ED skip HOT 1
- Error SQLITE HOT 4
- Loklok API HOT 11
- BUG REPORT HOT 4
- Where is the site admin located? HOT 1
- Loklok not working HOT 1
- nothing is playing HOT 1
- ANIME HD streaming does not work, takes forever to load
- `Player` bgColor 🥲 HOT 2
- Loklok not working HOT 1
- Xin source code của proxy api HOT 5
- thêm tiếng việt đi bác ơi
- How to deploy to vercel?
- Tried to deploy on vercel but didn't work whats the solution
- Bug API?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sora.