Hello @williamwirono !
It is quie frequent question on this forum. Check out Store | Dash for Python Documentation | Plotly and Persisting User Preferences & Control Values | Dash for Python Documentation | Plotly.
Also check this forum post Show last retained value in the navigation bar. This was a similiar issue a while ago
If dcc.Store does not fit your needs or you have some questions implementing it just reply back