useFetch data not reactive
Hey! So I have a simple/new nuxt app with 2 pages,
Each page has an HTTP request to a backend service elsewhere. When I refresh the page, it the data loads fine, but when I navigate to another page, the data does not "load". By this I mean the state does not get updated with the newly fetched data (I can see the network request in devtools). Below is the relevant code:
Below is the structure of
Oddly, the issue goes away after the first page navigation, and the code works as expected
/index and /tenantsEach page has an HTTP request to a backend service elsewhere. When I refresh the page, it the data loads fine, but when I navigate to another page, the data does not "load". By this I mean the state does not get updated with the newly fetched data (I can see the network request in devtools). Below is the relevant code:
tenants.vueindex.vueBelow is the structure of
GetOddly, the issue goes away after the first page navigation, and the code works as expected
