Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Multiple Queries support should support multiple of the same query with different variables/options

Đã đóng
#1,742 7 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start by tracing useFaustQuery and the existing multiple-queries support. Check how the current DocumentNode argument is consumed and review related tests or call sites. Done means repeated queries can use distinct variables or options without breaking existing one-argument usage.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

[Area] Core [Type] Enhancement

Our multiple queries support allows for define multiple queries, but we should also support defining multiple of the same query, with different variables and/or options.

Currently useFaustQuery() accepts only one argument, and that's the query DocumentNode. To support this, we may need to pass in a second argument for the variables or options, like:

const {post} = useFaustQuery(GET_POST, {databaseId: 5})

Or something along those lines, to avoid breaking changes.

Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
157
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
137

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wpengine/faustjs

Tất cả issue của wpengine/faustjs

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.