dcc.Location refresh callback-nav

I’m using a dcc.Location element and setting the refresh flag to ‘callback-nav’.

dcc.Location(id="location_industries", refresh='callback-nav'),

According to the docs (Location | Dash for Python Documentation | Plotly) this seems to be a valid option to set it as. But when I run the app an error is thrown about that being an unacceptable option.

Am I just reading the docs wrong??

I have the latest version of dash-core-components installed.

Hi @shwiftyRick

That error message means that you aren’t running the latest version.

To be sure, put this at the top of your app:


import dash
print(dash.__version__)

It needs to be >= 2.9.2