Skip to content

@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

Released under the MIT License.