I am working on the multi-page apps. I have the functionality of reading from the CSV file on page1 and then passing that information(option parameter) to create a dropdown menu. I also have a refresh button. So whenever I click on the refresh button the CSV file will be updated. However, when I refresh the entire page the dropdown values are not getting updated (Since it depends on the information from the CSV file). It works if I stop the program and start from the beginning.
Structure of program
import packages
read a CSV file stored in a folder
create a layout
- refresh button
- create a dropdown (dcc.Dropdown()) (takes the option parameter, which depend on the csv data)
action
run the app
read data from csv file then
displays the dropdown let say
a.1212
b.3232
Click on the refresh button
so the CSV file is getting updated,
expected
a.1212
b.3232
c.3432
what I am getting
a.1212
b.3232
How can I update the dropdown once the CSV file is getting updated?