Functions don't seem to re-run on revalidatePath or router.refresh
Unanswered
io posted this in #help-forum
ioOP
I'm building a text editor with a sidebar. It saves content with a debounced function that triggers a server action, which in turn has a revalidatePath in it. The sidebar does refresh with newer content, but functions that rely on that data don't seem to be refreshing properly.
Specifically, the function that calculates the
Specifically, the function that calculates the
n secs ago doesn't seem to run, and returns null for some reason. I have checked that the value refreshes correctly by checking if the value (updatedAt) itself refreshes, and that works fine. The problem only occurs with a function wrapping updatedAt.1 Reply
ioOP
I'm not sure if I've implemented something wrong, or this is a bug.