Skip to content

Commit 1bece2f

Browse files
Update documentation/docs/30-advanced/20-hooks.md
Co-authored-by: Rich Harris <[email protected]>
1 parent 858aa8f commit 1bece2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/30-advanced/20-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ The `lang` parameter will be correctly derived from the returned pathname.
299299

300300
Using `reroute` will _not_ change the contents of the browser's address bar, or the value of `event.url`.
301301

302-
Since version 2.18, the `reroute` hook is allowed to be asynchronous, to for example fetch data from your backend to decide where to reroute. Use this carefully and make sure it's fast, as this will delay navigations otherwise.
302+
Since version 2.18, the `reroute` hook can be asynchronous, allowing it to (for example) fetch data from your backend to decide where to reroute to. Use this carefully and make sure it's fast, as it will delay navigation otherwise.
303303

304304
### transport
305305

0 commit comments

Comments
 (0)