Access $page before create app #996
Replies: 1 comment
-
Hey @lucraraujo Looking at the setup section it lools like that an asynchronous retrieved user object is supported. const user = () => store.auth.user; Note the function. This is most likely a Vuex example but you might easily be able to adopt it for Inertia. Another option could be to injecting the initial application user as But what I would rather recommend is to build your own approach, it's very easy. This could be a start: |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use an ACL plugin in my application (https://github.com/mblarsen/vue-browser-acl) and it requires to get the user before the application is created. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions