waitForInitialising
Overview
Wait for the user to be initialized. This is useful if you're making your own custom guards that need to know if the user is logged in or not.
Signature
waitForInitialising(pinia)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| pinia | Pinia | yes | The Pinia instance. |
Returns
Promise
The user store.
Source
client/lib/router/guards.js:39