Vercel Postgres wont update live
Answered
Spectacled bear posted this in #help-forum
Spectacled bearOP
If i update or add something to my table in my database my website wont update? how do i fix? i know the connection is working. I can only make it fix when i
What do?
rm -rf .nextWhat do?
17 Replies
@Spectacled bear If i update or add something to my table in my database my website wont update? how do i fix? i know the connection is working. I can only make it fix when i `rm -rf .next`
What do?
where are the docs, that it updates your page instantly?
Normally there is a new request (or from the mutation) and then you set it yourself
Normally there is a new request (or from the mutation) and then you set it yourself
Spectacled bearOP
is there a way to make it update instantly
like
@B33fb0n3 where are the docs, that it updates your page instantly?
Normally there is a new request (or from the mutation) and then you set it yourself
Spectacled bearOP
when you open up my page, itll check back on the database and display the new data
i want it so if i update the user rating and refresh my page, itll show the updated user rating
i want to fetch the data on everytime i open the site
i probably have to setup an endpoint in my api that fetches the data dont i
Siberian
This is probably a caching issue
Siberian
What happens if you use noStore() on the page
Answer
Spectacled bearOP
testing rn
worked
thanks
@Siberian This is probably a caching issue
Spectacled bearOP
u da GOAT
Siberian
Happy to help!
FYI in next 15+ itll be turned off by default
But ISR is actually a really cool feature, you might want to look into using revalidatePath etc when mutating data to implement some smart caching strategies