Skip to content

Commit 714fec4

Browse files
zigomirkazupon
authored andcommitted
go accepts number of steps back (#39)
This one ate me few minutes :)
1 parent 421a68a commit 714fec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ sync(store, router, { moduleName: 'RouteModule' } )
4141

4242
- When the router navigates to a new route, the store's state is updated.
4343

44-
- **`store.state.route` is immutable, because it is derived state from the URL, which is the source of truth**. You should not attempt to trigger navigations by mutating the route object. Instead, just call `$router.go()`. Note that you can do `$router.go({ query: {...}})` to update the query string on the current path.
44+
- **`store.state.route` is immutable, because it is derived state from the URL, which is the source of truth**. You should not attempt to trigger navigations by mutating the route object. Instead, just call `$router.push()` or `$router.go()`. Note that you can do `$router.push({ query: {...}})` to update the query string on the current path.
4545

4646
### License
4747

0 commit comments

Comments
 (0)