reset function

The function error.tsx receives that re-renders the failed segment to try again.

In more detail

Call it from a Try again button. It re-renders the boundary's contents on the client; if the cause was on the server, refresh the data first, for example with router.refresh().

Related terms

Taught in

References