React query data lost after running 'navigate(...)'
I have a React web app using react-query and react router. I have a URLs that look like: '[main domain]/pricelists/active' and '[main domain]/pricelists/active/25' where the first loads a lists of price lists and the second loads the pricelists but open a sliding modal displaying the pricelist with that id.
My issue is with that second url that opens the modal. If I load that URL directly in the browser, IE typing it in and hitting enter, everything works fine. All the querydata is there and working. However, when I click on a pricelist in the table from the other URL, I am running
My issue is with that second url that opens the modal. If I load that URL directly in the browser, IE typing it in and hitting enter, everything works fine. All the querydata is there and working. However, when I click on a pricelist in the table from the other URL, I am running
navigate(...); and then all querydata is lost/missing. I can see in the 'ReactQueryDevtools', that there is no data, it is completely blank. What am I doing wrong here?