@pinia/root / pinia / shouldHydrate
shouldHydrate()
ts
function shouldHydrate(obj): boolean
Returns whether a value should be hydrated
Parameters
• obj: any
target variable
Returns
boolean
true if obj
should be hydrated