feat: Better handle multiple queries
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- nextjs, react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start with the discussion in #2110 and inspect the existing useFaustQuery and FaustProvider paths described in the issue. Compare the proposed useSeedQuery and useQuery approaches, then define a solution that supports the same query with different variables, avoids duplicate caching, preserves existing behavior, and documents multiple-query usage.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We should come up with a better solution to handle multiple queries in Faustjs. Discussion around useFaustQuery and multiple queries: #2110
Summary:
useFaustQueryadds an elegant way to access multiple queries on client side.
- But it don't support to get the same queries with different variables.
- It's also adding a duplicate cache, where we already have the same data in Apollo cache.
We can use Apollo's
useQueryto access server-fetched data with more control.
- To do this we need to have the correct query variables that server uses to fetch data, mostly based on seed query.
- Template passes seed query data inside props. But it's not a developer friendly way to access that data, also requires prop drilling for child components.
Next steps:
A better way to access the data on client side should be explored.
- One option is to have
useSeedQueryutility to access the seed node anywhere underFaustProvider.- Another way is to wrap useQuery with
useFaustQuerywithout restricting the capabilities ofuseQuery.We should avoid breaking changes.
We may consider a config option to disable useFaustQuery-related cache for those who want it.
We should well document the capabilities of Faust for the multiple queries.
- Ngôn ngữ chính
- TypeScript
- Star
- 1.6k
- Fork
- 157
- Merge trung bình
- 1 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 101
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wpengine/faustjs
-
docs: Better inform users about supported Nextjs versionsCó thể đã có người làm @josephfusco đã nhận 5 ngày trước. Đang mở[Area] Compatibility [Type] Documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wpengine/faustjs#2308 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
RFC: Deprecate `@faustwp/block-editor-utils`Có thể đã có người làm @theodesp đã nhận 6 ngày trước. Đang mởNeeds Discussion
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
wpengine/faustjs#2640 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Area] Core [Type] Feature Needs Discussion
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Area] WordPress Plugin [Type] Feature Needs Discussion php
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Area] WordPress Plugin [Type] Feature Needs Discussion php Security
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của wpengine/faustjs
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
stellar/stellar-dev-skill#151 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Trial & Error: guided Blind offer squeezes on phones and sits under the touch toolbar on iPadĐang mởarea:arcade game ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
fderuiter/deruiter.dev#2281 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
scope: data grid type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
fix(frontend): correct VITE_IS_DEVELPOMENT typo in shared/app.ts and align dev environment flagsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vicharanashala/ajrasakha#1439 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: TV5Monde AsieĐang mởapproved check:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày