revalidate on focus with data fetching / server action from app dir
Answered
Orinoco Crocodile posted this in #help-forum
Orinoco CrocodileOP
can server actions or data fetching do revalidate on tab focus? like SWR
2 Replies
@Orinoco Crocodile can server actions or data fetching do revalidate on tab focus? like SWR
no. but you can use a client component, listen for tab focus event, then on focus runs router.refresh() or the server action
@joulev no. but you can use a client component, listen for tab focus event, then on focus runs router.refresh() or the server action
Orinoco CrocodileOP
alright tysm!
Answer