Skip to content

Commit 23f2f73

Browse files
authored
Fix syntax for auth/user getter in docs
1 parent bef5f3d commit 23f2f73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/3.0-major-release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Due to changes in how reactivity is applied to service state (it's now using Vue
3333

3434
If you depend on a reactive, logged-in user in your apps, here is how to fix the reactivity:
3535

36-
- Replace any reference to `store.state.auth.user` with `store.state.getters('auth/user')`.
36+
- Replace any reference to `store.state.auth.user` with `store.getters['auth/user']`.
3737

3838
Because the `user` state is no longer reactive, it is logical for it to be removed in the next version. It will likely be replaced by a `userId` attribute in Feathers-Vuex 4.0.
3939

@@ -75,4 +75,4 @@ The `keepCopiesInStore` feature is set to be removed in Feathers-Vuex 4.0.
7575

7676
### Auth Plugin State: `user`
7777

78-
As described, earlier on this page, since the Auth Plugin's `user` state is no longer reactive and has been replaced by a `user` getter that IS reactive, the `user` state will be removed in the Feathers-Vuex 4.0.
78+
As described, earlier on this page, since the Auth Plugin's `user` state is no longer reactive and has been replaced by a `user` getter that IS reactive, the `user` state will be removed in the Feathers-Vuex 4.0.

0 commit comments

Comments
 (0)