refresh
API Reference for the refresh function.
refresh allows you to refresh the client router from within a Server Action.
Usage
refresh can only be called from within Server Actions. It cannot be used in Route Handlers, Client Components, or any other context.
Parameters
Returns
refresh does not return a value.