aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/vendor/react-router/docs/api/misc/transition.md
blob: fc0395726b9ff79daf77bb835c0a939b368af148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
API: `transition` (object)
==========================

This object is sent to the [transition hooks][transition-hooks] as the
first argument.

Methods
-------

### `abort()`

Aborts a transition.

### `redirect(to, params, query)`

Redirect to another route.

### `retry()`

Retrys a transition. Typically you save off a transition you care to
return to, finish the workflow, then retry.

  [transition-hooks]:/docs/api/components/RouteHandler.md#static-lifecycle-methods