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

[ERROR] DateRange: Maximum update depth exceeded

Đang mở
#2,266 2 bình luận 1 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, react
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi trong DateRange CodeSandbox được liên kết trong issue, sử dụng entry point ví dụ tại packages/web/examples/DateRange/src/index.js. Theo dõi luồng chọn DateRange và xác minh rằng việc chọn ngày bắt đầu và ngày kết thúc sẽ lọc các thẻ kết quả mà không kích hoạt lỗi độ sâu cập nhật tối đa.

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

Mô tả

bug

Affected Projects
Reactivesearch

Library Version:
4.2.0

Describe the bug
Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the demo link mentioned in the docs - https://codesandbox.io/s/github/appbaseio/reactivesearch/tree/next/packages/web/examples/DateRange?from-embed=&file=/src/index.js
  2. Try selecting any start/end date with DateRange component

Expected behavior
Expect the results cards to be filtered out based on date range provided

Screenshots
image

Video
https://github.com/appbaseio/reactivesearch/assets/85502721/55d20215-07ac-4223-a147-f57686137ddd

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version: 119.0.6045.123 (Official Build) (x86_64)

Additional context
Have been facing a similar issue in my project where the app errors out if you select a daterange

Ngôn ngữ chính
JavaScript
Star
4.9k
Fork
479
Merge trung bình
4 ngày 10 giờ
Pull request đã merge (30 ngày)
4

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 appbaseio/reactivesearch

Tất cả issue của appbaseio/reactivesearch

Issue tương tự

Thêm issue về JavaScript

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.