Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Svelte invalidate() not refreshing after initial refresh

$
0
0

I have a button on a Svelte page listing some data. This button invokes a data endpoint to add/update a record to the database. After the database is updated, the Svelte function invalidate('URL') gets called to refresh the page. This works perfectly the first time the button is clicked, however, on subsequent clicks, the page does not get refreshed. Is there an additional step I need to do to allow the invalidate() function to work on subsequent calls? NOTE: If I click on the browser's reload button, all of the data will appear which tells me that the data is getting updated everytime the button is clicked.


Viewing all articles
Browse latest Browse all 1541

Trending Articles