You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a small wrapper around [`redirect`][redirect] that will trigger a client-side redirect to the new location using `history.replaceState` instead of `history.pushState`.
9
+
10
+
## Type Declaration
11
+
12
+
```ts
13
+
typeRedirectFunction= (
14
+
url:string,
15
+
init?:number|ResponseInit
16
+
) =>Response;
17
+
```
18
+
19
+
## `url`
20
+
21
+
The URL to redirect to.
22
+
23
+
```js
24
+
replace("/otherapp/login");
25
+
```
26
+
27
+
## `init`
28
+
29
+
The `status` or the [Response][response] options to be used in the response.
0 commit comments