Skip to content

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

NameTypeRequiredDescription
piniaPiniayesThe Pinia instance.

Returns

Promise

The user store.

Source

client/lib/router/guards.js:39

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2