You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
constdateQuery=(filter,value)=>validDatestring(value)
? {query: {range: {date: {// transform however you want before adding to the query[filter]: newDate(zonedTimeToUtc(value,'America/New_York')).getTime(),},},},}
: {};
in my case "date" is the mapped field name and it's type "long" so I transform it to a number before sending
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:
Expected behavior
Expect the results cards to be filtered out based on date range provided
Screenshots
Video
https://github.com/appbaseio/reactivesearch/assets/85502721/55d20215-07ac-4223-a147-f57686137ddd
Desktop (please complete the following information):
Additional context
Have been facing a similar issue in my project where the app errors out if you select a daterange
The text was updated successfully, but these errors were encountered: