# dcc.Location refresh callback-nav

**URL:** <https://community.plotly.com/t/dcc-location-refresh-callback-nav/77210>\
**Category:** Dash Python\
**Tags:** question\
**Created:** [July 27, 2023, 12:34am UTC](https://community.plotly.com/t/dcc-location-refresh-callback-nav/77210 "2023-07-27T00:34:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwiftyRick](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@shwiftyRick](https://community.plotly.com/u/shwiftyRick)\
**Post date:** [July 27, 2023, 12:34am UTC](https://community.plotly.com/t/dcc-location-refresh-callback-nav/77210/1 "2023-07-27T00:34:21Z")

</div>

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](https://dash.plotly.com/dash-core-components/location)) 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.

 ![Screenshot 2023-07-26 at 8.24.32 PM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/2/5/25affca2a11b669698ac1419d46fe87247977e7e.png)

---

<div class="post-metadata">

**Author:** ![AnnMarieW](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AnnMarieW](https://community.plotly.com/u/AnnMarieW)\
**Post date:** [July 27, 2023, 12:55am UTC](https://community.plotly.com/t/dcc-location-refresh-callback-nav/77210/2 "2023-07-27T00:55:09Z")

</div>

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:

```auto

import dash
print(dash. __version__ )

```

It needs to be \>= 2.9.2
