Next Server Actions version of getStaticProps
Unanswered
Serengeti posted this in #help-forum
Original message was deleted.
7 Replies
server actions shouldn't be executed on the server and only in client
@riský server actions shouldn't be executed on the server and only in client
Serengeti
gothca ill update my code then
the functions remain still, how do i build/cache the page
they are default static and only dynamic if they use dynamic features such as headers or a root layout is dynamic
Serengeti
even with async pages calling async functions?
yes thats allowed
Serengeti
alright, sorry one final question. whenever i refresh the page i keep calling the
files function. Whenever I refresh the page I keep logging "test" therefore reading the files over and over. On server side code how can i call the files function, remember the result, and use that globally forever and ever