I have the following callbacks:
@app.callback(
[Output("useridPicker", "value"), Output("datePicker", "date"), ],
[Input("url", "search")]
)
def update_form_default(url_search):
return 111, dt.today()
@app.callback(
Output("url", "search"),
[Input("useridPicker", "value"), Input("datePicker", "date")]
)
def update_current_url(userid, date):
return f"?userid=111&date=2020-06-29"
I have one text-area to pick a userid (useridPicker), a date picker to pick a date (datePicker) and a url containing as params the current userid and the current date ("YYYY-MM-DD").
When I modify the date or the userid from the url, I would like to update the displayed values inside (useridPicker) and (datePicker). And vice-versa.
For now, I get the following error:
Error: Dependency Cycle Found: useridPicker.value -> url.search -> useridPicker.value
When inside a callback, is there a way to prevent another callback from firing? In order to avoid this circular dependencies error and a possible infinite loop between callbacks.